Packages

object ResponseSurface

The ResponseSurface companion object provides methods for creating functional forms.

Linear Supertypes
AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. ResponseSurface
  2. AnyRef
  3. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Value Members

  1. 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)

  2. 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

  3. 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)

  4. 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