Statistics

com.phasmidsoftware.tableparser.core.table.Statistics
See theStatistics companion class
object Statistics

Companion object for the Statistics case class. Provides methods to create a Statistics instance from a sequence of doubles.

Attributes

Companion
class
Graph
Supertypes
trait Product
trait Mirror
class Object
trait Matchable
class Any
Self type
Statistics.type

Members list

Type members

Inherited and Abstract types

type MirroredElemLabels <: Tuple

The names of the product elements.

The names of the product elements.

Attributes

Inherited from:
Mirror
type MirroredLabel <: String

The name of the type.

The name of the type.

Attributes

Inherited from:
Mirror

Value members

Concrete methods

def make(xs: Seq[Double]): Option[Statistics]

Creates an Option[Statistics] from a sequence of Double values. If the sequence is empty, returns None. If the sequence contains one value, returns a Statistics instance with zero standard deviation and the same value for min and max. If the sequence contains more than one value, delegates to a private method to calculate the statistics.

Creates an Option[Statistics] from a sequence of Double values. If the sequence is empty, returns None. If the sequence contains one value, returns a Statistics instance with zero standard deviation and the same value for min and max. If the sequence contains more than one value, delegates to a private method to calculate the statistics.

Value parameters

xs

a sequence of Double values from which to compute statistics.

Attributes

Returns

an Option[Statistics] containing the computed statistics if the sequence is non-empty, or None if the sequence is empty.