Class/Object

org.dsa.iot.rx.numeric

Stats

Related Docs: object Stats | package numeric

Permalink

case class Stats(count: Long, mean: Double, varnum: Double, min: Double, max: Double) extends Product with Serializable

A class for tracking the statistics of a set of numbers (count, mean and variance) in a numerically robust way. Includes support for merging two Stats objects. Based on Welford and Chan's algorithms for running variance.

Linear Supertypes
Serializable, Serializable, Product, Equals, AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. Stats
  2. Serializable
  3. Serializable
  4. Product
  5. Equals
  6. AnyRef
  7. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Instance Constructors

  1. new Stats(count: Long, mean: Double, varnum: Double, min: Double, max: Double)

    Permalink

    Initialize the Stats with the given values.

Value Members

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

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

    Permalink
    Definition Classes
    AnyRef → Any
  3. def +(value: Double): Stats

    Permalink

    Merges this Stats with a single value, producing the cumulative stats.

  4. def ++(values: TraversableOnce[Double]): Stats

    Permalink

    Merges this Stats with a set of values, producing the cumulative stats.

  5. def ++(that: Stats): Stats

    Permalink

    Merges this Stats with another instance, producing the cumulative stats.

  6. final def ==(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  7. final def asInstanceOf[T0]: T0

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

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  9. val count: Long

    Permalink
  10. def covar: Double

    Permalink

    Returns the coefficient of variation.

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

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

    Permalink

    Overrides to account for empty stats with NaN values.

    Overrides to account for empty stats with NaN values.

    Definition Classes
    Stats → Equals → AnyRef → Any
  13. def finalize(): Unit

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

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

    Permalink
    Definition Classes
    Any
  16. val max: Double

    Permalink
  17. val mean: Double

    Permalink
  18. def merge(values: TraversableOnce[Double]): Stats

    Permalink

    Merges this Stats with a set of values, producing the cumulative stats.

  19. def merge(value: Double): Stats

    Permalink

    Merges this Stats with a single value, producing the cumulative stats.

  20. def merge(that: Stats): Stats

    Permalink

    Merges this Stats with another instance, producing the cumulative stats.

  21. val min: Double

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

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

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

    Permalink
    Definition Classes
    AnyRef
  25. def sampleStdev: Double

    Permalink

    Return the sample standard deviation of the values, which corrects for bias in estimating the variance by dividing by N-1 instead of N.

  26. def sampleVariance: Double

    Permalink

    Return the sample variance, which corrects for bias in estimating the variance by dividing by N-1 instead of N.

  27. def stdev: Double

    Permalink

    Returns the standard deviation of the values.

  28. def sum: Double

    Permalink

    Returns the sum of the distribution.

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

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

    Permalink

    Returns a string representation of this distribution.

    Returns a string representation of this distribution.

    Definition Classes
    Stats → AnyRef → Any
  31. def variance: Double

    Permalink

    Returns the variance of the distribution.

  32. val varnum: Double

    Permalink
  33. final def wait(): Unit

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

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

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

Inherited from Serializable

Inherited from Serializable

Inherited from Product

Inherited from Equals

Inherited from AnyRef

Inherited from Any

Ungrouped