class QuadraticFit extends AnyRef
The QuadraticFit
class uses multiple regression to fit a quadratic surface
to the function 'f'. This is useful when computing 'f' is costly, for example
in simulation optimization. The fit is over a multi-dimensional grid and
can be used for interpolation and limited extrapolation.
- Alphabetic
- By Inheritance
- QuadraticFit
- AnyRef
- Any
- Hide All
- Show All
- Public
- All
Instance Constructors
-
new
QuadraticFit(f: FunctionV2S, n: Int = 3, k: Int = 5)
- f
the vector-to-scalar function to fit.
- n
the dimensionality of the domain of f
- k
the number (odd number) of values for each dimension, e.g., 5, 7, 9
Value Members
-
final
def
!=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
final
def
##(): Int
- Definition Classes
- AnyRef → Any
-
final
def
==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
final
def
asInstanceOf[T0]: T0
- Definition Classes
- Any
-
def
clone(): AnyRef
- Attributes
- protected[java.lang]
- Definition Classes
- AnyRef
- Annotations
- @native() @throws( ... )
-
final
def
eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
def
equals(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
def
finalize(): Unit
- Attributes
- protected[java.lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( classOf[java.lang.Throwable] )
-
def
fit(xx: MatriD, yy: VectoD): Unit
Given a design matrix and response vector, use multiple regression to fit the surface, i.e., determine the coefficients of the regression equation.
Given a design matrix and response vector, use multiple regression to fit the surface, i.e., determine the coefficients of the regression equation.
- xx
the data/design matrix
- yy
the response vector
-
def
formGrid(xc: VectoD, xs: VectoD): Unit
Given a center point x, form a square grid around it.
Given a center point x, form a square grid around it. This can be used to create a design matrix for use in multiple regression.
-
final
def
getClass(): Class[_]
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
-
def
hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
-
final
def
isInstanceOf[T0]: Boolean
- Definition Classes
- Any
-
final
def
ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
final
def
notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
-
final
def
notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
-
def
printGrid(): Unit
Print all the vectors/points in the grid.
-
def
qForms(x: VectoD): VectoD
Given a vector 'x', compute the values for all of its quadratic, linear and constant forms/terms, returning them as a vector.
Given a vector 'x', compute the values for all of its quadratic, linear and constant forms/terms, returning them as a vector. for 1D: 'VectorD (1., x(0), x(0)~2.)' for 2D: 'VectorD (1., x(0), x(0)~2., x(1), x(1)*x(0), x(1)~^2.)'
- x
the source vector for creating forms/terms
-
def
qFormsEval(x: VectoD): Double
Given a point x, use the quadratic regression equation to estimate a value for the function at x.
Given a point x, use the quadratic regression equation to estimate a value for the function at x. for 1D: b(0) + b(1)*x(0) + b(2)*x(0)~2. for 2D: b(0) + b(1)*x(0) + b(2)*x(0)~2. + b(3)*x(1) + b(4)*x(1)*x(0) + b(5)*x(1)~^2.
- x
the point whose functional value is to be predicted
-
def
reduce(): Unit
Reduce from the full model to one with fewer variable.
Reduce from the full model to one with fewer variable. FIX: adjust 'qFormEval' to skip left out variable
-
def
response(): (MatriD, VectoD)
Given a grid of design points, create a design matrix 'xx' and response vector 'yy' returning them as a tuple.
-
final
def
synchronized[T0](arg0: ⇒ T0): T0
- Definition Classes
- AnyRef
-
def
toString(): String
- Definition Classes
- AnyRef → Any
-
final
def
wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @throws( ... )