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
Linear Supertypes
Serializable, AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. Statistic
  2. Serializable
  3. AnyRef
  4. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. Protected

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. 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

  5. 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

  6. 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

  7. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  8. def clone(): AnyRef
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.CloneNotSupportedException]) @native() @IntrinsicCandidate()
  9. 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

  10. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  11. def equals(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef → Any
  12. final def getClass(): Class[_ <: AnyRef]
    Definition Classes
    AnyRef → Any
    Annotations
    @native() @IntrinsicCandidate()
  13. def hashCode(): Int
    Definition Classes
    AnyRef → Any
    Annotations
    @native() @IntrinsicCandidate()
  14. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  15. val na: String
  16. val na_statistic: List[String]

    static "not applicable" CSV value for a non-existing statistic

  17. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  18. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native() @IntrinsicCandidate()
  19. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native() @IntrinsicCandidate()
  20. 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

  21. def print[T](s: Statistic[T]): Option[Unit]
  22. final def synchronized[T0](arg0: => T0): T0
    Definition Classes
    AnyRef
  23. def toString(): String
    Definition Classes
    AnyRef → Any
  24. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  25. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException]) @native()
  26. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])

Deprecated Value Members

  1. def finalize(): Unit
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.Throwable]) @Deprecated @deprecated
    Deprecated

    (Since version ) see corresponding Javadoc for more information.

Inherited from Serializable

Inherited from AnyRef

Inherited from Any

Ungrouped