kumulant

StatSchemaDef

@Serializable
data class StatSchemaDef(val stats: Map<String, StatSpec>)(source)

Pure-data, serializable form of a StatSchema. The wire field is stats (kumulant convention, customised over skema's default entries). Decode an incoming wire payload into this type and rehydrate a live group via materializeSeries (or one of the modality-specific variants).

Constructors

Link copied to clipboard
constructor(stats: Map<String, StatSpec>)

Properties

Link copied to clipboard

Per-entry specs keyed by StatKey.name.

Functions

Link copied to clipboard
fun StatSchemaDef.materialize(concurrency: Concurrency = Concurrency.None): List<BoundStat<*, *, *>>

Materialize every entry, regardless of modality. Caller filters by stat type.

Link copied to clipboard
fun StatSchemaDef.materializeDiscrete(concurrency: Concurrency = Concurrency.None): List<BoundStat<*, out DiscreteStat<*>, *>>

Materialize discrete-modality entries only; throws if any entry isn't discrete.

Link copied to clipboard
fun StatSchemaDef.materializePaired(concurrency: Concurrency = Concurrency.None): List<BoundStat<*, out PairedStat<*>, *>>

Materialize paired-modality entries only; throws if any entry isn't paired.

Link copied to clipboard
fun StatSchemaDef.materializeSeries(concurrency: Concurrency = Concurrency.None): List<BoundStat<*, out SeriesStat<*>, *>>

Materialize series-modality entries only; throws if any entry isn't series.

Link copied to clipboard
fun StatSchemaDef.materializeVector(concurrency: Concurrency = Concurrency.None): List<BoundStat<*, out VectorStat<*>, *>>

Materialize vector-modality entries only; throws if any entry isn't vector.

StatSchemaDef

constructor(stats: Map<String, StatSpec>)(source)

stats

Per-entry specs keyed by StatKey.name.