Packages

case class Stat(count: Long = 0L, mean: Double = Double.NaN, M2: Double = Double.NaN, min: Double = Double.NaN, max: Double = Double.NaN, last: Double = Double.NaN, first: Double = Double.NaN) extends StatTrait[Double] with Product with Serializable

Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. Stat
  2. Serializable
  3. Product
  4. Equals
  5. StatTrait
  6. AnyRef
  7. Any
Implicitly
  1. by richDrxAny
  2. by any2stringadd
  3. by StringFormat
  4. by Ensuring
  5. by ArrowAssoc
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. Protected

Instance Constructors

  1. new Stat(count: Long = 0L, mean: Double = Double.NaN, M2: Double = Double.NaN, min: Double = Double.NaN, max: Double = Double.NaN, last: Double = Double.NaN, first: Double = Double.NaN)

Value Members

  1. final def !=(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  2. final def ##: Int
    Definition Classes
    AnyRef → Any
  3. def +(x: Double): Stat
  4. def ++(that: Stat): Stat
  5. def ->[B](y: B): (Stat, B)
    Implicit
    This member is added by an implicit conversion from Stat toArrowAssoc[Stat] performed by method ArrowAssoc in scala.Predef.
    Definition Classes
    ArrowAssoc
    Annotations
    @inline()
  6. final def ==(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  7. val M2: Double
  8. def applyIf(t: Boolean, f: (Stat) => Stat): Stat
    Implicit
    This member is added by an implicit conversion from Stat toDrxAny[Stat] performed by method richDrxAny in cc.drx.predef.Enrich.
    Definition Classes
    DrxAny
  9. def applyIf(t: (Stat) => Boolean)(f: (Stat) => Stat): Stat

    better chaining for types

    better chaining for types

    Implicit
    This member is added by an implicit conversion from Stat toDrxAny[Stat] performed by method richDrxAny in cc.drx.predef.Enrich.
    Definition Classes
    DrxAny
  10. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  11. def bound: Bound[Double]

    max and min bound

  12. def boundFrac(populationFraction: Double): Bound[Double]

    use Chebyshev's inequality to build around the specified fraction of data where k = 1/sqrt(1-p) where where p = percentOfPopulation note this better matches unknown distributions of data this calculation also does not require the erf calculation if the Gaussian distribution is assumed wp:Standard_deviation wp:Chebyshev%27s_inequality

  13. def boundMost: Bound[Double]

    3 sigma bound

  14. def boundSigma(kSigma: Double): Bound[Double]

    bound around the mean by +/- k standard deviations, but don't go beyond the max or min

  15. def clone(): AnyRef
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.CloneNotSupportedException]) @native()
  16. val count: Long
    Definition Classes
    StatStatTrait
  17. def elementOf(xs: Set[Stat]): Boolean
    Implicit
    This member is added by an implicit conversion from Stat toDrxAny[Stat] performed by method richDrxAny in cc.drx.predef.Enrich.
    Definition Classes
    DrxAny
  18. def ensuring(cond: (Stat) => Boolean, msg: => Any): Stat
    Implicit
    This member is added by an implicit conversion from Stat toEnsuring[Stat] performed by method Ensuring in scala.Predef.
    Definition Classes
    Ensuring
  19. def ensuring(cond: (Stat) => Boolean): Stat
    Implicit
    This member is added by an implicit conversion from Stat toEnsuring[Stat] performed by method Ensuring in scala.Predef.
    Definition Classes
    Ensuring
  20. def ensuring(cond: Boolean, msg: => Any): Stat
    Implicit
    This member is added by an implicit conversion from Stat toEnsuring[Stat] performed by method Ensuring in scala.Predef.
    Definition Classes
    Ensuring
  21. def ensuring(cond: Boolean): Stat
    Implicit
    This member is added by an implicit conversion from Stat toEnsuring[Stat] performed by method Ensuring in scala.Predef.
    Definition Classes
    Ensuring
  22. def entropy(sigDigits: Int): Double

    max Shannon entropy for a Gaussian Note: entropy of zero variance is infinite.

    max Shannon entropy for a Gaussian Note: entropy of zero variance is infinite. But rarely is that the case, with Doubles, so use a user defined variance metric url: https://en.wikipedia.org/wiki/Entropy_(information_theory)

  23. def entropy: Double

    max Shannon entropy for a Gaussian Default to a min variance of 16significant digits for floating point double url: https://en.wikipedia.org/wiki/Entropy_(information_theory)

  24. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  25. def finalize(): Unit
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.Throwable])
  26. val first: Double
  27. def formatted(fmtstr: String): String
    Implicit
    This member is added by an implicit conversion from Stat toStringFormat[Stat] performed by method StringFormat in scala.Predef.
    Definition Classes
    StringFormat
    Annotations
    @inline()
  28. final def getClass(): Class[_ <: AnyRef]
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  29. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  30. def isZero: Boolean
  31. def jsDist(b: Stat): Double

    the jsd distance metric includes a sqrt term

  32. def jsdByKLD(b: Stat): Double

    Jensen–Shannon divergence for a Gaussian url: https://en.wikipedia.org/wiki/Jensen%E2%80%93Shannon_divergence

  33. def kld(b: Stat): Double

    KL Divergence between two univariate Gaussian's [units of Nats] url: https://en.wikipedia.org/wiki/Normal_distribution

  34. val last: Double
  35. val max: Double
    Definition Classes
    StatStatTrait
  36. val mean: Double
    Definition Classes
    StatStatTrait
  37. lazy val mid: Double
  38. val min: Double
    Definition Classes
    StatStatTrait
  39. def minVariance(sigDigits: Int): Double

    min variance where sigDigits on the mean is 1 sigma

  40. def mu: Double

    alias for mean

  41. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  42. def nice: String
  43. def nonZero: Boolean
  44. def noneIf(f: (Stat) => Boolean): Option[Stat]
    Implicit
    This member is added by an implicit conversion from Stat toDrxAny[Stat] performed by method richDrxAny in cc.drx.predef.Enrich.
    Definition Classes
    DrxAny
  45. def norm(x: Double): Double
  46. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  47. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  48. def optionIf(f: (Stat) => Boolean): Option[Stat]

    optionally wrap an object

    optionally wrap an object

    Implicit
    This member is added by an implicit conversion from Stat toDrxAny[Stat] performed by method richDrxAny in cc.drx.predef.Enrich.
    Definition Classes
    DrxAny
  49. def parEquals(that: Stat): Boolean
  50. def preApply[B](f: (Stat) => B): B

    a preApply f => f(a)

    a preApply f => f(a)

    Implicit
    This member is added by an implicit conversion from Stat toDrxAny[Stat] performed by method richDrxAny in cc.drx.predef.Enrich.
    Definition Classes
    DrxAny
  51. def productElementNames: Iterator[String]
    Definition Classes
    Product
  52. def s: Double

    alias for standard deviation

  53. def s2: Double

    alias for variance

  54. def sideEffect(f: (Stat) => Unit): Stat

    side effect filter

    side effect filter

    Implicit
    This member is added by an implicit conversion from Stat toDrxAny[Stat] performed by method richDrxAny in cc.drx.predef.Enrich.
    Definition Classes
    DrxAny
  55. def someIf(f: (Stat) => Boolean): Option[Stat]
    Implicit
    This member is added by an implicit conversion from Stat toDrxAny[Stat] performed by method richDrxAny in cc.drx.predef.Enrich.
    Definition Classes
    DrxAny
  56. lazy val std: Double
    Definition Classes
    StatStatTrait
  57. final def synchronized[T0](arg0: => T0): T0
    Definition Classes
    AnyRef
  58. val thisAny: Stat
    Implicit
    This member is added by an implicit conversion from Stat toDrxAny[Stat] performed by method richDrxAny in cc.drx.predef.Enrich.
    Definition Classes
    DrxAny
  59. def toKson: String
  60. def toString(): String
    Definition Classes
    StatStatTrait → AnyRef → Any
  61. lazy val variance: Double
  62. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  63. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  64. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException]) @native()

Shadowed Implicit Value Members

  1. def +(other: String): String
    Implicit
    This member is added by an implicit conversion from Stat toany2stringadd[Stat] performed by method any2stringadd in scala.Predef.
    Shadowing
    This implicitly inherited member is shadowed by one or more members in this class.
    To access this member you can use a type ascription:
    (stat: any2stringadd[Stat]).+(other)
    Definition Classes
    any2stringadd

Deprecated Value Members

  1. def ?>(f: (Stat) => Boolean): Option[Stat]

    alias for option if

    alias for option if

    Implicit
    This member is added by an implicit conversion from Stat toDrxAny[Stat] performed by method richDrxAny in cc.drx.predef.Enrich.
    Definition Classes
    DrxAny
    Annotations
    @deprecated
    Deprecated

    (Since version v0.2.15) to many symbols are hard to undertand

  2. def addFast(x: Double): Stat
    Annotations
    @deprecated
    Deprecated

    (Since version v0.2.15) use the Stat batch construtor instead

  3. lazy val range: Double
    Annotations
    @deprecated
    Deprecated

    (Since version v0.1.18) use bound.dist instead

  4. def |>[B](f: (Stat) => B): B
    Implicit
    This member is added by an implicit conversion from Stat toDrxAny[Stat] performed by method richDrxAny in cc.drx.predef.Enrich.
    Definition Classes
    DrxAny
    Annotations
    @deprecated
    Deprecated

    (Since version v0.2.15) use preApply if you must (symbols are concise without concision)

  5. def [B](y: B): (Stat, B)
    Implicit
    This member is added by an implicit conversion from Stat toArrowAssoc[Stat] performed by method ArrowAssoc in scala.Predef.
    Definition Classes
    ArrowAssoc
    Annotations
    @deprecated
    Deprecated

    (Since version 2.13.0) Use -> instead. If you still wish to display it as one character, consider using a font with programming ligatures such as Fira Code.

Inherited from Serializable

Inherited from Product

Inherited from Equals

Inherited from StatTrait[Double]

Inherited from AnyRef

Inherited from Any

Inherited by implicit conversion richDrxAny fromStat to DrxAny[Stat]

Inherited by implicit conversion any2stringadd fromStat to any2stringadd[Stat]

Inherited by implicit conversion StringFormat fromStat to StringFormat[Stat]

Inherited by implicit conversion Ensuring fromStat to Ensuring[Stat]

Inherited by implicit conversion ArrowAssoc fromStat to ArrowAssoc[Stat]

Ungrouped