CompositePosterior
Composite Posterior over the sub-snapshots produced by a CompositeArm. Each sub-posterior draws independently; the resulting samples are packed as V(0)..V(N-1) and reduced to a single score by the combine AST.
Wire-serializable because every leg is either a serialisable Posterior or a serialisable ScalarExpr. For zero-inflated lognormal revenue:
CompositePosterior(<br> subPosteriors = listOf(BetaPosterior, LogNormalGammaPosterior),<br> combine = V(0) * V(1), // P(positive) * positive_value<br>)Combiners are sample-based, not summary-based; they see one draw per sub-posterior, not parameters. Combiners that need raw posterior moments (e.g. exp(mu + sigma^2/2) for the lognormal mean rather than a draw) fall outside this surface and want a bespoke posterior.
Properties
Score expression evaluated against the sub-arm draws (V(0)..V(N-1)).
Per-sub-arm posteriors, parallel to CompositeArm.subArms.
CompositePosterior
combine
Score expression evaluated against the sub-arm draws (V(0)..V(N-1)).
sample
subPosteriors
Per-sub-arm posteriors, parallel to CompositeArm.subArms.