com.eharmony.aloha.models.reg

ConstantDeltaSpline

case class ConstantDeltaSpline(min: Double, max: Double, knots: IndexedSeq[Double]) extends Spline with Product with Serializable

A spline with the property the delta between consecutive domain values is a fixed constant. Because of this, we just need to specify the min and max and the values in the image of the function.

NOTE: This class is exposed outside the package for use in aloha-conversions only. This class SHOULD NOT be used outside the aloha libraries.

min

the minimum domain value

max

the maximum domain value (strictly greater than min IFF spline has at least two knots, or equal to min IFF spline has one knot)

knots

Required to have a positive number of knots (size > 0).

Linear Supertypes
Serializable, Serializable, Product, Equals, Spline, (Double) ⇒ Double, AnyRef, Any
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. ConstantDeltaSpline
  2. Serializable
  3. Serializable
  4. Product
  5. Equals
  6. Spline
  7. Function1
  8. AnyRef
  9. Any
  1. Hide All
  2. Show all
Learn more about member selection
Visibility
  1. Public
  2. All

Instance Constructors

  1. new ConstantDeltaSpline(min: Double, max: Double, knots: IndexedSeq[Double])

    min

    the minimum domain value

    max

    the maximum domain value (strictly greater than min IFF spline has at least two knots, or equal to min IFF spline has one knot)

    knots

    Required to have a positive number of knots (size > 0).

Value Members

  1. final def !=(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  2. final def !=(arg0: Any): Boolean

    Definition Classes
    Any
  3. final def ##(): Int

    Definition Classes
    AnyRef → Any
  4. final def ==(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  5. final def ==(arg0: Any): Boolean

    Definition Classes
    Any
  6. def andThen[A](g: (Double) ⇒ A): (Double) ⇒ A

    Definition Classes
    Function1
    Annotations
    @unspecialized()
  7. def apply(score: Double): Double

    Definition Classes
    ConstantDeltaSpline → Function1
  8. final def asInstanceOf[T0]: T0

    Definition Classes
    Any
  9. val bin: Double

    If knots is one, then we want bin equal to be 1 so that the division to get the value of k in calibrate doesn't divide by zero.

    If knots is one, then we want bin equal to be 1 so that the division to get the value of k in calibrate doesn't divide by zero. If there are 2+ knots, then bin contains the dx value for the spline.

  10. def clone(): AnyRef

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  11. def compose[A](g: (A) ⇒ Double): (A) ⇒ Double

    Definition Classes
    Function1
    Annotations
    @unspecialized()
  12. final def eq(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  13. def finalize(): Unit

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  14. final def getClass(): Class[_]

    Definition Classes
    AnyRef → Any
  15. final def isInstanceOf[T0]: Boolean

    Definition Classes
    Any
  16. val knots: IndexedSeq[Double]

    Required to have a positive number of knots (size > 0).

  17. val max: Double

    the maximum domain value (strictly greater than min IFF spline has at least two knots, or equal to min IFF spline has one knot)

  18. val min: Double

    the minimum domain value

  19. final def ne(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  20. final def notify(): Unit

    Definition Classes
    AnyRef
  21. final def notifyAll(): Unit

    Definition Classes
    AnyRef
  22. final def synchronized[T0](arg0: ⇒ T0): T0

    Definition Classes
    AnyRef
  23. def toString(): String

    Definition Classes
    Function1 → AnyRef → Any
  24. final def wait(): Unit

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  25. final def wait(arg0: Long, arg1: Int): Unit

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  26. final def wait(arg0: Long): Unit

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )

Inherited from Serializable

Inherited from Serializable

Inherited from Product

Inherited from Equals

Inherited from Spline

Inherited from (Double) ⇒ Double

Inherited from AnyRef

Inherited from Any

Ungrouped