Companion object to Statistic. Provides a csv header and convenience methods for statistic options and empty data lists.
Attributes
- Companion
- class
- Source
- Statistics.scala
- Graph
-
- Supertypes
-
trait Producttrait Mirrorclass Objecttrait Matchableclass Any
- Self type
-
Statistic.type
Members list
Type members
Inherited types
The names of the product elements
The name of the type
Value members
Concrete methods
Produces CSV data of statistics for non-empty data, and 'not applicable' values otherwise.
Produces CSV data of statistics for non-empty data, and 'not applicable' values otherwise.
Type parameters
- T
-
the type of data to create statistics on (must be measurable in terms of num and conv)
Value parameters
- conv
-
a measure for calculating the avarage and standard deviation in the statistic
- num
-
the implicit converter to treat elements of s as numeric types
- s
-
a sequence of data
Attributes
- Returns
-
CSV data for s if it is non-empty, Statistic.na_statistic otherwise
- Source
- Statistics.scala
Creates a statistic from a collection of values of type T.
Creates a statistic from a collection of values of type T.
Type parameters
- T
-
the type of elements
Value parameters
- conv
-
a measure that maps the elements of T to big decimals
- num
-
the implicit Numeric object with implementations for the algebraic operators
- values
-
the collection of values
Attributes
- Returns
-
the statistic belonging to the values
- Source
- Statistics.scala
Creates a statistic from a collection of values of type T, if values is non-empty
Creates a statistic from a collection of values of type T, if values is non-empty
Type parameters
- T
-
the type of elements
Value parameters
- conv
-
a measure that maps the elements of T to big decimals
- num
-
the implicit Numeric object with implementations for the algebraic operators
- values
-
the collection of values
Attributes
- Returns
-
the statistic belonging to the values
- Source
- Statistics.scala
create a list of descriptions of the form tag-min, tag-max etc. that matches the order of Statistic.toCSV
create a list of descriptions of the form tag-min, tag-max etc. that matches the order of Statistic.toCSV
Value parameters
- tag
-
the prefix for the columns
Attributes
- Source
- Statistics.scala
Converts a statistic option to CSV with a default of not applicable
Converts a statistic option to CSV with a default of not applicable
Type parameters
- T
-
the type of data elements of the statistic
Value parameters
- s
-
an optional statistic
Attributes
- Returns
-
CSV data for s, if it exists na_statistic otherwise
- Source
- Statistics.scala
Attributes
- Source
- Statistics.scala
Concrete fields
Attributes
- Source
- Statistics.scala
static "not applicable" CSV value for a non-existing statistic