Class/Object

com.twitter.algebird.DecayingCMS

DoubleAt

Related Docs: object DoubleAt | package DecayingCMS

Permalink

class DoubleAt extends Serializable

Represents a decaying scalar value at a particular point in time.

The value decays according to halfLife. Another way to think about DoubleAt is that it represents a particular decay curve (and in particular, a point along that curve). Two DoubleAt values may be equivalent if they are two points on the same curve.

The timeToZero and timeToUnit methods can be used to "normalize" DoubleAt values. If two DoubleAt values do not produce the same (approximate) Double values from these methods, they represent different curves.

Self Type
DoubleAt
Linear Supertypes
Serializable, Serializable, AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. DoubleAt
  2. Serializable
  3. Serializable
  4. AnyRef
  5. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Value Members

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

    Permalink
    Definition Classes
    AnyRef → Any
  2. final def ##(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  3. def *(n: Double): DoubleAt

    Permalink
  4. def +(rhs: DoubleAt): DoubleAt

    Permalink
  5. def -(rhs: DoubleAt): DoubleAt

    Permalink
  6. def /(rhs: DoubleAt): Double

    Permalink
  7. def <(rhs: DoubleAt): Boolean

    Permalink
  8. def <=(rhs: DoubleAt): Boolean

    Permalink
  9. final def ==(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  10. def >(rhs: DoubleAt): Boolean

    Permalink
  11. def >=(rhs: DoubleAt): Boolean

    Permalink
  12. def abs: DoubleAt

    Permalink
  13. final def asInstanceOf[T0]: T0

    Permalink
    Definition Classes
    Any
  14. def at(time: Long): Double

    Permalink
  15. def clone(): AnyRef

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  16. def compare(rhs: DoubleAt): Int

    Permalink

    We consider two DoubleAt values equal not just if their elements are equal, but also if they represent the same value at different points of decay.

  17. final def eq(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  18. def equals(that: Any): Boolean

    Permalink
    Definition Classes
    DoubleAt → AnyRef → Any
  19. def finalize(): Unit

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

    Permalink
    Definition Classes
    AnyRef → Any
  21. def hashCode(): Int

    Permalink
    Definition Classes
    DoubleAt → AnyRef → Any
  22. final def isInstanceOf[T0]: Boolean

    Permalink
    Definition Classes
    Any
  23. def max(rhs: DoubleAt): DoubleAt

    Permalink
  24. def min(rhs: DoubleAt): DoubleAt

    Permalink
  25. final def ne(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  26. final def notify(): Unit

    Permalink
    Definition Classes
    AnyRef
  27. final def notifyAll(): Unit

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

    Permalink
    Definition Classes
    AnyRef
  29. def time: Long

    Permalink
  30. val timeInHL: Double

    Permalink
  31. def timeToUnit: Double

    Permalink

    This is the scaled time when the current value will reach 1 (or -1 for negative values)

    This is the scaled time when the current value will reach 1 (or -1 for negative values)

    This method is a way of collapsing a DoubleAt into a single value (the time in the past or future where its value would be 1, the unit value).

  32. def timeToZero: Double

    Permalink

    Time when this value will reach the smallest double value bigger than zero, unless we are already at zero in which case we return the current time

  33. def toString(): String

    Permalink
    Definition Classes
    DoubleAt → AnyRef → Any
  34. def unary_-: DoubleAt

    Permalink
  35. val value: Double

    Permalink
  36. final def wait(): Unit

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

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

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )

Inherited from Serializable

Inherited from Serializable

Inherited from AnyRef

Inherited from Any

Ungrouped