PairedStat
Accumulator over paired (x, y) scalar observations. The shape covers scalar-on-scalar regression (UnivariateRegressionStat), weighted covariance and correlation (CovarianceStat), and every paired evaluation metric in com.eignex.kumulant.stat.score / com.eignex.kumulant.stat.calibration: (prediction, truth) pairs, (score, label) pairs, etc.
Convention across the library: x is the predictor / input axis, y is the response / outcome axis. Score-family stats treat x as the predicted value and y as the observed value.
Inheritors
Properties
Thread-safety mode fixed at construction. See Concurrency for the shared contract and the implementation's KDoc for its cell and lock strategy.
Functions
create
Create an independent accumulator at the configured baseline. A null concurrency preserves this accumulator's mode; a non-null value overrides it. Modality subtypes narrow the return type to preserve the input shape.
update
Fold a compatible snapshot values into this accumulator at timestampNanos. Implementations document whether the combine is exact or approximate and which state the snapshot omits. The source accumulator is unaffected.
Return the current result evaluated at timestampNanos. Time-independent statistics ignore the timestamp. Reading does not add an observation.
Restore the configured baseline, including any prior seed. Preserves the configuration and concurrency.