kumulant

BoundStat

data class BoundStat<R : Result, S : Stat<R>, K : StatKey<R>>(val key: K, val stat: S)(source)

Pairs a StatKey with the live Stat that produces results for that slot. The combination is what a StatGroup / ListStats actually holds; the key for typed lookup, the stat for accumulation. Carries three type parameters so the key's R / S / K match without erasure shenanigans at the call site:

Most callers don't construct BoundStat by hand; the StatSchema declarators (StatSchema.series, StatSchema.paired, etc.) produce them. Direct construction is useful when bypassing the schema for ad-hoc groups.

Constructors

Link copied to clipboard
constructor(key: K, stat: S)

Properties

Link copied to clipboard
val key: K

Typed key under which stat's result lives in the GroupResult.

Link copied to clipboard
val stat: S

Live accumulator producing the result.

BoundStat

constructor(key: K, stat: S)(source)

key

val key: K(source)

Typed key under which stat's result lives in the GroupResult.

stat

val stat: S(source)

Live accumulator producing the result.