kumulant

HasObservationCount

Result trait exposing the accumulated observation weight, including prior seeds where configured. isEmpty tests for positive evidence; it does not distinguish a fresh accumulator from one whose weights have cancelled through downdates.

Check isEmpty before interpreting a statistic whose empty result uses a placeholder such as 0.0. Concrete results may expose this weight under another name as well, such as totalSeen or totalWeight.

Inheritors

Properties

isEmpty

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

totalWeights

abstract val totalWeights: Double(source)

Cumulative weight of observations folded into this result.