Object/Class

com.twitter.algebird

Moments

Related Docs: class Moments | package algebird

Permalink

object Moments extends Serializable

Linear Supertypes
Serializable, Serializable, AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. Moments
  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. final def ==(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  4. val aggregator: MomentsAggregator.type

    Permalink
  5. def apply(m0: Long, m1: Double, m2: Double, m3: Double, m4: Double): Moments

    Permalink

    This it the legacy apply when count was a Long

  6. def apply[V](m0: Long, m1: V, m2: V, m3: V, m4: V)(implicit num: Numeric[V]): Moments

    Permalink
  7. def apply[V](value: V)(implicit arg0: Numeric[V], num: Numeric[V]): Moments

    Permalink

    Create a Moments object given a single value.

    Create a Moments object given a single value. This is useful for initializing moment calculations at the start of a stream.

  8. final def asInstanceOf[T0]: T0

    Permalink
    Definition Classes
    Any
  9. def clone(): AnyRef

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  10. final def eq(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  11. def equals(arg0: Any): Boolean

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

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

    Permalink
    Definition Classes
    AnyRef → Any
  14. def getCombinedMeanDouble(weightN: Double, an: Double, weightK: Double, ak: Double): Double

    Permalink

    Given two streams of doubles (weightN, an) and (weightK, ak) of form (weighted count, mean), calculates the mean of the combined stream.

    Given two streams of doubles (weightN, an) and (weightK, ak) of form (weighted count, mean), calculates the mean of the combined stream.

    Uses a more stable online algorithm which should be suitable for large numbers of records similar to: http://en.wikipedia.org/wiki/Algorithms_for_calculating_variance#Parallel_algorithm

    This differs from the implementation in MomentsGroup.scala only in that here, the counts are weighted, and are thus doubles instead of longs

  15. def hashCode(): Int

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

    Permalink
    Definition Classes
    Any
  17. implicit val momentsMonoid: Monoid[Moments] with CommutativeMonoid[Moments]

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

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

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

    Permalink
    Definition Classes
    AnyRef
  21. def numericAggregator[N](implicit num: Numeric[N]): MonoidAggregator[N, Moments, Moments]

    Permalink
  22. final def synchronized[T0](arg0: ⇒ T0): T0

    Permalink
    Definition Classes
    AnyRef
  23. def toString(): String

    Permalink
    Definition Classes
    AnyRef → Any
  24. def unapply(m: Moments): Option[(Long, Double, Double, Double, Double)]

    Permalink

    This it the legacy unapply when count was a Long

  25. final def wait(): Unit

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

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

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

Deprecated Value Members

  1. def group: Group[Moments] with CommutativeGroup[Moments]

    Permalink
    Annotations
    @deprecated
    Deprecated

    (Since version 0.13.8) use monoid[Moments], this isn't lawful for negate

Inherited from Serializable

Inherited from Serializable

Inherited from AnyRef

Inherited from Any

Ungrouped