kumulant

SummaryResult

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

Snapshot exposing running mean, variance, min, and max simultaneously.

Constructors

SummaryResult

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

Properties

center

open override val center: Double(source)

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

max

open override val max: Double(source)

Maximum value observed so far over the accumulator's lifetime (or window).

mean

Weighted running mean.

min

open override val min: Double(source)

Minimum value observed so far over the accumulator's lifetime (or window).

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.

Link copied to clipboard
open val isEmpty: Boolean

True when totalWeights is not positive, including zero, negative values, and NaN.

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 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]).