sealed classMoments extends Product with Serializable
A class to calculate the first five central moments over a sequence of Doubles. Given the first five
central moments, we can then calculate metrics like skewness and kurtosis.
m{i} denotes the ith central moment.
This code manually inlines code to make it look like a case class. This is done because we changed the
count from a Long to a Double to enable the scale method, which allows exponential decays of moments, but
we didn't want to break backwards binary compatibility.
Linear Supertypes
Serializable, Serializable, Product, Equals, AnyRef, Any
A class to calculate the first five central moments over a sequence of Doubles. Given the first five central moments, we can then calculate metrics like skewness and kurtosis.
m{i} denotes the ith central moment.
This code manually inlines code to make it look like a case class. This is done because we changed the count from a Long to a Double to enable the scale method, which allows exponential decays of moments, but we didn't want to break backwards binary compatibility.