MixtureRootSampler#
- class sdm.prior.MixtureRootSampler(samplers: Sequence[RootSampler | tuple[RootSampler, float]], correlated: bool = True, key: Hashable | None = None)#
Bases:
RootSampler,Mixture[RootSampler]Pick one root sampler per call from a weighted pool.
- Parameters:
samplers (Sequence[RootSampler | tuple[RootSampler, float]]) – Root samplers or
(sampler, weight)pairs.correlated (bool) – Share selection probabilities within an active
CorrelatedContext.key (Hashable | None) – Key for shared probabilities. Defaults to this mixture’s identity.