Packages

  • package root
    Definition Classes
    root
  • package myscala
    Definition Classes
    root
  • package math
    Definition Classes
    myscala
  • package stats

    Statistical functions

    Statistical functions

    • quantile computation

    Overview

    The main functions in this package are used as follows

    import scala.util.Random
    
    // Computation of quantiles example
    val computeQuantilesEvery10 = computeQuantiles(Seq(10,20,30,40,50,60,70,80,90))_ // partial evaluation (currying)
    val q = computeQuantilesEvery10(Seq.fill(123)(Random.nextDouble))
    
    // Statistics example
    val data = Vector(1,2,3,4,5,6,7,8,9,10)s
    data.statistics // thanks to the implicit class
    Definition Classes
    math
  • package bootstrap
    Definition Classes
    stats
  • BoxPlot
  • ComputeQuantiles
  • ComputeStats
  • EmptyStatistics
  • Quantile
  • Quantiles
  • Statistics
c

myscala.math.stats

Statistics

case class Statistics[T](size: Int, mean: Double, median: Double, min: T, max: T, variance: Double)(implicit evidence$1: Numeric[T]) extends Product with Serializable

Container for the results of computing the statistics of an sequence.

T

numeric type

size

number of values in the sample

mean

mean of the sample

median

median of the sample

min

minimum

max

maximum

variance

variance

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

Instance Constructors

  1. new Statistics(size: Int, mean: Double, median: Double, min: T, max: T, variance: Double)(implicit arg0: Numeric[T])

    size

    number of values in the sample

    mean

    mean of the sample

    median

    median of the sample

    min

    minimum

    max

    maximum

    variance

    variance

Value Members

  1. final def !=(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  2. final def ##(): Int
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  4. val CSVColumnNames: String
  5. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  6. def clone(): AnyRef
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.CloneNotSupportedException]) @native()
  7. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  8. def finalize(): Unit
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.Throwable])
  9. final def getClass(): Class[_ <: AnyRef]
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  10. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  11. val max: T
  12. val mean: Double
  13. val median: Double
  14. val min: T
  15. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  16. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  17. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  18. def productElementNames: Iterator[String]
    Definition Classes
    Product
  19. val size: Int
  20. final def synchronized[T0](arg0: => T0): T0
    Definition Classes
    AnyRef
  21. def toCSV: String
  22. def toTuple: (Int, Double, Double, T, T, Double)
  23. val variance: Double
  24. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  25. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  26. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException]) @native()

Inherited from Serializable

Inherited from Product

Inherited from Equals

Inherited from AnyRef

Inherited from Any

Ungrouped