Packages

case class CubicPolynomial(intercept: Double = .0, a: Double = .0, b: Double = .0, c: Double = .0, aa: Double = .0, ab: Double = .0, ac: Double = .0, bb: Double = .0, bc: Double = .0, cc: Double = .0, aaa: Double = .0, abc: Double = .0, bbb: Double = .0, ccc: Double = .0, regressionResult: Option[Result] = None) extends Product with Serializable

Cubic polynomial function of 3 variables, with some 3-order cross-terms dropped (aab, aac, abb, acc, bbc, bcc) to reduce requirements on size of data needed to fit the polynomial.

f(A,B,C) = intercept +
           a*A + b*B + c*C +
           aa*A*A + ab*A*B + ac*A*C + bb*B*B + bc*B*C + cc*C*C +
           aaa*A*A*A + bbb*B*B*B + ccc*C*C*C + abc*A*B*C
Linear Supertypes
Serializable, Product, Equals, AnyRef, Any
Type Hierarchy
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. CubicPolynomial
  2. Serializable
  3. Product
  4. Equals
  5. AnyRef
  6. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. Protected

Instance Constructors

  1. new CubicPolynomial(coeff: Array[Double], regressionResult: Option[Result])

    Initialize coefficients from an Array(intercept, a, b, c, aa, ab, ac, bb, bc, cc, aaa, abc, bbb, ccc)

    Initialize coefficients from an Array(intercept, a, b, c, aa, ab, ac, bb, bc, cc, aaa, abc, bbb, ccc)

    coeff

    coefficient array.

  2. new CubicPolynomial(intercept: Double = .0, a: Double = .0, b: Double = .0, c: Double = .0, aa: Double = .0, ab: Double = .0, ac: Double = .0, bb: Double = .0, bc: Double = .0, cc: Double = .0, aaa: Double = .0, abc: Double = .0, bbb: Double = .0, ccc: Double = .0, regressionResult: Option[Result] = None)

Value Members

  1. final def !=(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  2. final def ##: Int
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  4. val a: Double
  5. val aa: Double
  6. val aaa: Double
  7. val ab: Double
  8. val abc: Double
  9. val ac: Double
  10. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  11. val b: Double
  12. val bb: Double
  13. val bbb: Double
  14. val bc: Double
  15. val c: Double
  16. val cc: Double
  17. val ccc: Double
  18. def clone(): AnyRef
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.CloneNotSupportedException]) @native() @IntrinsicCandidate()
  19. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  20. def evaluate(v: Array[Double]): Double

    Evaluate polynomial for the given argument.

    Evaluate polynomial for the given argument.

    v

    array of length 3.

  21. final def getClass(): Class[_ <: AnyRef]
    Definition Classes
    AnyRef → Any
    Annotations
    @native() @IntrinsicCandidate()
  22. val intercept: Double
  23. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  24. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  25. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native() @IntrinsicCandidate()
  26. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native() @IntrinsicCandidate()
  27. def productElementNames: Iterator[String]
    Definition Classes
    Product
  28. val regressionResult: Option[Result]
  29. final def synchronized[T0](arg0: => T0): T0
    Definition Classes
    AnyRef
  30. def toArray: Array[Double]

    Convert coefficient to an array, the order is the same as in the constructor.

  31. def toMap: LinkedHashMap[String, Double]

    Map of the coefficient where values are coefficient names, same as in the constructor.

  32. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  33. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException]) @native()
  34. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])

Deprecated Value Members

  1. def finalize(): Unit
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.Throwable]) @Deprecated
    Deprecated

Inherited from Serializable

Inherited from Product

Inherited from Equals

Inherited from AnyRef

Inherited from Any

Ungrouped