MixtureMatrixSampler#
- class sdm.prior.MixtureMatrixSampler(samplers: Sequence[MatrixSampler | tuple[MatrixSampler, float]], correlated: bool = False, key: Hashable | None = None)#
Bases:
MatrixSampler,Mixture[MatrixSampler]Pick one matrix sampler per call from a weighted pool.
- Parameters:
samplers (Sequence[MatrixSampler | tuple[MatrixSampler, float]]) – Matrix 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.