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
Functions
Spawn a fresh accumulator with the same configuration. Optionally override the Concurrency; useful for materialising a wire spec at a different concurrency level than the source.
Fold another accumulator's snapshot into this one. The unit of merge is the immutable Result; not a live Stat; which is what lets the merge cross a process boundary. Many workers track slices of the same stream, call read periodically, ship snapshots to a coordinator, and the coordinator merges them in.
Reset the stat to its prior-seeded baseline. Equivalent to constructing a fresh stat with the same configuration, but in place; keeps the same Concurrency and any per-stat tunables.
create
Spawn a fresh accumulator with the same configuration. Optionally override the Concurrency; useful for materialising a wire spec at a different concurrency level than the source.
The returned stat is independent: its state starts at the configured baseline, not at the source's current state. Each modality subtype narrows the return type so chaining doesn't lose the modality.
update
Record an (x, y) observation with the given weight at the current time.
Record an (x, y) observation at timestampNanos with the given weight.