MomentsResult
First four central moments (m2..m4) plus mean and total weight.
Constructors
MomentsResult
Properties
center
m2
m3
m4
mean
scale
sst
Sum of squared deviations from the running mean: Sum (x - mean)^2 * weight.
Implementors must override this or variance; the two are defined in terms of each other, so overriding neither recurses until the stack runs out. Every Result in the library overrides sst, which is the cheaper of the two to carry.
totalWeights
Cumulative weight of observations folded into this result.
True when totalWeights is not positive, including zero, negative values, and NaN.
Unbiased sample standard deviation: sqrt([sampleVariance]).
Unbiased sample variance: [sst] / ([totalWeights] - 1). Zero when totalWeights <= 1.
Sample-size-adjusted (unbiased) excess kurtosis. Zero when totalWeights <= 3.
Sample-size-adjusted (unbiased) skewness. Zero when totalWeights <= 2.