DiscreteStatGroup
class DiscreteStatGroup(stats: List<BoundStat<*, out DiscreteStat<*>, *>>, concurrency: Concurrency? = null) : AbstractStatGroup<DiscreteStat<*>> , DiscreteStat<GroupResult> (source)
StatGroup variant over discrete (Long) inputs.
Constructors
DiscreteStatGroup
constructor(stats: List<BoundStat<*, out DiscreteStat<*>, *>>, concurrency: Concurrency? = null)(source)
constructor(vararg stats: BoundStat<*, out DiscreteStat<*>, *>, concurrency: Concurrency? = null)(source)
constructor(vararg stats: Pair<StatKey<*>, DiscreteStat<*>>, concurrency: Concurrency? = null)(source)
Properties
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.
Link copied to clipboard
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.
Link copied to clipboard
Return the current result evaluated at timestampNanos. Time-independent statistics ignore the timestamp. Reading does not add an observation.
Link copied to clipboard
Restore the configured baseline, including any prior seed. Preserves the configuration and concurrency.
Link copied to clipboard