kumulant

WeightedVarianceResult

@Serializable
@SerialName(value = "WeightedVarianceResult")
data class WeightedVarianceResult(val totalWeights: Double, val mean: Double, val variance: Double) : Result, HasSampleVariance, HasCenterScale(source)

Weighted mean and variance with totalWeights for merge arithmetic.

Constructors

Link copied to clipboard
constructor(totalWeights: Double, mean: Double, variance: Double)

Properties

Link copied to clipboard
open override val center: Double

Center of the distribution; typically a mean, median, or smoothed level.

Link copied to clipboard

Weighted running mean.

Link copied to clipboard

Unbiased sample standard deviation: sqrt([sampleVariance]).

Link copied to clipboard

Unbiased sample variance: [sst] / ([totalWeights] - 1). Zero when totalWeights <= 1.

Link copied to clipboard
open override val scale: Double

Scale of the distribution; typically a standard deviation, MAD, or span.

Link copied to clipboard
open val sst: Double

Sum of squared deviations from the running mean: Sum (x - mean)^2 * weight.

Link copied to clipboard
open val stdDev: Double

Population standard deviation: sqrt([variance]).

Link copied to clipboard
open override val totalWeights: Double

Cumulative weight of observations folded into this result.

Link copied to clipboard
open override val variance: Double

Population variance: [sst] / [totalWeights]. Zero on an empty stream.

WeightedVarianceResult

constructor(totalWeights: Double, mean: Double, variance: Double)(source)

center

open override val center: Double(source)

Center of the distribution; typically a mean, median, or smoothed level.

mean

Weighted running mean.

scale

open override val scale: Double(source)

Scale of the distribution; typically a standard deviation, MAD, or span.

totalWeights

open override val totalWeights: Double(source)

Cumulative weight of observations folded into this result.

variance

open override val variance: Double(source)

Population variance: [sst] / [totalWeights]. Zero on an empty stream.