materialize
Construct a live SeriesStat from a SeriesStatSpec. One when per modality, one cast at the boundary - sealed-hierarchy exhaustiveness keeps the cast safe.
The wrapper-spec branches narrow the wrapped inner spec to the expected modality at runtime; on mismatch they raise the same IllegalArgumentException the previous per-spec materialize overrides did.
Construct a live PairedStat from a PairedStatSpec. See SeriesStatSpec.materialize.
Construct a live VectorStat from a VectorStatSpec. See SeriesStatSpec.materialize.
Construct a live DiscreteStat from a DiscreteStatSpec. See SeriesStatSpec.materialize.
Construct a live stat from any StatSpec, dispatching on its modality. Useful for code paths (like StatSchemaDef.materialize) that iterate over an erased Map<String, StatSpec> and don't statically know the modality.
Construct a live RegressionStat from a RegressionStatSpec. See SeriesStatSpec.materialize.
Materialize every entry, regardless of modality. Caller filters by stat type.