Packages

class MeanValue extends Serializable

Immutable class that computes a derived mean from stored sum and count

In order to iteratively compute a mean, use the overridden + operator to "add" additional values into the result.

This class handles NaN sum by setting the count to zero. This effectively skips any NaN values in the mean calculation.

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

Instance Constructors

  1. new MeanValue(sum: Double, count: Long)

Value Members

  1. def +(b: MeanValue): MeanValue
  2. val count: Long
  3. def mean: Double
  4. val sum: Double