final case class SampleStats[A](size: A, m1: A, m2: A, m3: A, m4: A) extends Product with Serializable
Statistics based on a sample from a population.
- size
the number of observations
- m1
the first central moment
- m2
the second central moment
- m3
the third central moment
- m4
the fourth central moment
- Alphabetic
- By Inheritance
- SampleStats
- Serializable
- Serializable
- Product
- Equals
- AnyRef
- Any
- Hide All
- Show All
- Public
- All
Instance Constructors
-
new
SampleStats(size: A, m1: A, m2: A, m3: A, m4: A)
- size
the number of observations
- m1
the first central moment
- m2
the second central moment
- m3
the third central moment
- m4
the fourth central moment
Value Members
-
final
def
!=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
final
def
##(): Int
- Definition Classes
- AnyRef → Any
-
def
+(b: SampleStats[A])(implicit E: Equal[A], F: Field[A]): SampleStats[A]
Alias for
merge. -
final
def
==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
final
def
asInstanceOf[T0]: T0
- Definition Classes
- Any
-
def
clone(): AnyRef
- Attributes
- protected[java.lang]
- Definition Classes
- AnyRef
- Annotations
- @native() @throws( ... )
-
final
def
eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- def excessKurtosis(implicit E: Equal[A], F: Field[A]): slamdata.Predef.Option[A]
-
def
finalize(): Unit
- Attributes
- protected[java.lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( classOf[java.lang.Throwable] )
-
final
def
getClass(): Class[_]
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
-
final
def
isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- def kurtosis(implicit E: Equal[A], F: Field[A]): slamdata.Predef.Option[A]
- val m1: A
- val m2: A
- val m3: A
- val m4: A
- def mean: A
-
def
merge(b: SampleStats[A])(implicit E: Equal[A], F: Field[A]): SampleStats[A]
Combine with another
SampleStatsto produce stats about the union of their observations.Combine with another
SampleStatsto produce stats about the union of their observations.Implementation via Chan et al. https://en.wikipedia.org/wiki/Algorithms_for_calculating_variance#Parallel_algorithm
-
final
def
ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
final
def
notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
-
final
def
notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
-
def
observe(x: A)(implicit F: Field[A]): SampleStats[A]
Returns new stats that include the given observation.
Returns new stats that include the given observation.
NB: This is equivalent to
merge, simplified for the case when one of the stats has exactly one observation. -
def
populationExcessKurtosis(implicit E: Equal[A], F: Field[A]): slamdata.Predef.Option[A]
Estimated excess kurtosis of the population sampled.
-
def
populationKurtosis(implicit E: Equal[A], F: Field[A]): slamdata.Predef.Option[A]
Estimated kurtosis of the population sampled.
-
def
populationSkewness(implicit E: Equal[A], F: Field[A], R: NRoot[A]): slamdata.Predef.Option[A]
Estimated skewness of the population sampled.
-
def
populationStddev(implicit E: Equal[A], F: Field[A], R: NRoot[A]): slamdata.Predef.Option[A]
Estimated standard deviation of the population sampled.
-
def
populationVariance(implicit E: Equal[A], F: Field[A]): slamdata.Predef.Option[A]
Unbiased estimated variance of the population sampled.
- val size: A
- def skewness(implicit E: Equal[A], F: Field[A], R: NRoot[A]): slamdata.Predef.Option[A]
- def stddev(implicit E: Equal[A], F: Field[A], R: NRoot[A]): slamdata.Predef.Option[A]
-
final
def
synchronized[T0](arg0: ⇒ T0): T0
- Definition Classes
- AnyRef
- def variance(implicit E: Equal[A], F: Field[A]): slamdata.Predef.Option[A]
-
final
def
wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @throws( ... )