object ResponseSurface
The ResponseSurface
companion object provides methods for creating
functional forms.
- Alphabetic
- By Inheritance
- ResponseSurface
- AnyRef
- Any
- Hide All
- Show All
- Public
- All
Value Members
-
def
allForms(x: MatriD, cubic: Boolean): MatriD
Create all forms/terms for each point placing them in a new matrix.
Create all forms/terms for each point placing them in a new matrix.
- x
the input data matrix
- cubic
the order of the surface (2 for quadratic, 3 for cubic)
-
def
cForms(p: VectoD, nt: Int, n: Int): VectoD
Given a vector/point 'p', compute the values for all of its cubic, quadratic, linear and constant forms/terms, returning them as a vector.
Given a vector/point 'p', compute the values for all of its cubic, quadratic, linear and constant forms/terms, returning them as a vector. for 1D: p = (x_0) => 'VectorD (1, x_0, x_02, x_03)' for 2D: p = (x_0, x_1) => 'VectorD (1, x_0, x_02, x_03, x_0*x_1, x_02*x_1, x_0*x_12, x_1, x_12, x_13)'
- p
the source vector/point for creating forms/terms
- nt
the number of terms
- n
the number of predictors
-
def
numTerms(n: Int, cubic: Boolean = false): Int
The number of quadratic, linear and constant forms/terms (3, 6, 10, 15, ...) of cubic, quadratic, linear and constant forms/terms (4, 10, 20, 35, ...)
The number of quadratic, linear and constant forms/terms (3, 6, 10, 15, ...) of cubic, quadratic, linear and constant forms/terms (4, 10, 20, 35, ...)
- n
number of predictors
- cubic
the order of the surface (2 for quadratic, 3 for cubic)
-
def
qForms(p: VectoD, nt: Int, n: Int): VectoD
Given a vector/point 'p', compute the values for all of its quadratic, linear and constant forms/terms, returning them as a vector.
Given a vector/point 'p', compute the values for all of its quadratic, linear and constant forms/terms, returning them as a vector. for 1D: p = (x_0) => 'VectorD (1, x_0, x_02)' for 2D: p = (x_0, x_1) => 'VectorD (1, x_0, x_02, x_0*x_1, x_1, x_1^2)'
- p
the source vector/point for creating forms/terms
- nt
the number of terms
- n
the number of predictors