object Statistic extends Serializable
Companion object to Statistic. Provides a csv header and convenience methods for statistic options and empty data lists.
- Source
- Statistics.scala
- Alphabetic
- By Inheritance
- Statistic
- Serializable
- AnyRef
- Any
- Hide All
- Show All
- Public
- Protected
Value Members
- final def !=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- final def ##: Int
- Definition Classes
- AnyRef → Any
- final def ==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- def alsoEmptyDataToCSV[T](s: Seq[T])(implicit num: Numeric[T], conv: (T) => BigDecimal): Seq[String]
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.
- T
the type of data to create statistics on (must be measurable in terms of num and conv)
- s
a sequence of data
- num
the implicit converter to treat elements of s as numeric types
- conv
a measure for calculating the avarage and standard deviation in the statistic
- returns
CSV data for s if it is non-empty, Statistic.na_statistic otherwise
- def apply[T](values: Seq[T])(implicit num: Numeric[T], conv: (T) => BigDecimal): Statistic[T]
Creates a statistic from a collection of values of type T.
Creates a statistic from a collection of values of type T.
- T
the type of elements
- values
the collection of values
- num
the implicit Numeric object with implementations for the algebraic operators
- conv
a measure that maps the elements of T to big decimals
- returns
the statistic belonging to the values
- def applyOpt[T](values: Seq[T])(implicit num: Numeric[T], conv: (T) => BigDecimal): Option[Statistic[T]]
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
- T
the type of elements
- values
the collection of values
- num
the implicit Numeric object with implementations for the algebraic operators
- conv
a measure that maps the elements of T to big decimals
- returns
the statistic belonging to the values
- final def asInstanceOf[T0]: T0
- Definition Classes
- Any
- def clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.CloneNotSupportedException]) @native() @IntrinsicCandidate()
- def csv_header(tag: String): List[String]
create a list of descriptions of the form tag-min, tag-max etc.
create a list of descriptions of the form tag-min, tag-max etc. that matches the order of Statistic.toCSV
- tag
the prefix for the columns
- final def eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- def equals(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef → Any
- final def getClass(): Class[_ <: AnyRef]
- Definition Classes
- AnyRef → Any
- Annotations
- @native() @IntrinsicCandidate()
- def hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native() @IntrinsicCandidate()
- final def isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- val na: String
- val na_statistic: List[String]
static "not applicable" CSV value for a non-existing statistic
- final def ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- final def notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @IntrinsicCandidate()
- final def notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @IntrinsicCandidate()
- def optCSV[T](s: Option[Statistic[T]]): List[String]
Converts a statistic option to CSV with a default of not applicable
Converts a statistic option to CSV with a default of not applicable
- T
the type of data elements of the statistic
- s
an optional statistic
- returns
CSV data for s, if it exists na_statistic otherwise
- def print[T](s: Statistic[T]): Option[Unit]
- final def synchronized[T0](arg0: => T0): T0
- Definition Classes
- AnyRef
- def toString(): String
- Definition Classes
- AnyRef → Any
- final def wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- final def wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException]) @native()
- final def wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
This is the API documentation for GAPT.
The main package is gapt.