Class/Object

org.hammerlab.magic.stats

Stats

Related Docs: object Stats | package stats

Permalink

case class Stats[K, V](n: V, mean: Double, stddev: Double, mad: Double, samplesOpt: Option[Samples[K, V]], sortedSamplesOpt: Option[Samples[K, V]], percentiles: Seq[(Double, Double)])(implicit evidence$1: Numeric[K], evidence$2: Integral[V]) extends Product with Serializable

Wrapper for some computed statistics about a dataset of Numeric elements.

K

Numeric element type. TODO(ryan): allow this to be non-Numeric.

V

Integral value type.

n

number of elements in the dataset.

mean

mean.

stddev

stddev.

mad

median absolute deviation (from the median).

samplesOpt

"sample" elements; the start and end of the data.

sortedSamplesOpt

"sample" elements; the least and greatest elements. If the dataset is already sorted, meaning this would be equivalent to samplesOpt, it is omitted.

percentiles

selected percentiles of the dataset.

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(n: V, mean: Double, stddev: Double, mad: Double, samplesOpt: Option[Samples[K, V]], sortedSamplesOpt: Option[Samples[K, V]], percentiles: Seq[(Double, Double)])(implicit arg0: Numeric[K], arg1: Integral[V])

    Permalink

    n

    number of elements in the dataset.

    mean

    mean.

    stddev

    stddev.

    mad

    median absolute deviation (from the median).

    samplesOpt

    "sample" elements; the start and end of the data.

    sortedSamplesOpt

    "sample" elements; the least and greatest elements. If the dataset is already sorted, meaning this would be equivalent to samplesOpt, it is omitted.

    percentiles

    selected percentiles of the dataset.

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. final def asInstanceOf[T0]: T0

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

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

    Permalink
    Definition Classes
    AnyRef
  7. def finalize(): Unit

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

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

    Permalink
    Definition Classes
    Any
  10. val mad: Double

    Permalink

    median absolute deviation (from the median).

  11. val mean: Double

    Permalink

    mean.

  12. val n: V

    Permalink

    number of elements in the dataset.

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

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

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

    Permalink
    Definition Classes
    AnyRef
  16. val percentiles: Seq[(Double, Double)]

    Permalink

    selected percentiles of the dataset.

  17. def prettyDouble(d: Double): String

    Permalink
  18. val samplesOpt: Option[Samples[K, V]]

    Permalink

    "sample" elements; the start and end of the data.

  19. val sortedSamplesOpt: Option[Samples[K, V]]

    Permalink

    "sample" elements; the least and greatest elements.

    "sample" elements; the least and greatest elements. If the dataset is already sorted, meaning this would be equivalent to samplesOpt, it is omitted.

  20. val stddev: Double

    Permalink

    stddev.

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

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

    Permalink
    Definition Classes
    Stats → AnyRef → Any
  23. final def wait(): Unit

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

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  25. 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