popsynth.aux_samplers.trunc_normal_aux_sampler module
- class popsynth.aux_samplers.trunc_normal_aux_sampler.TruncatedNormalAuxSampler(name: str, observed: bool = True)[source]
Bases:
AuxiliarySampler
- mu
- tau
- lower
- upper
- sigma
- __init__(name: str, observed: bool = True)[source]
A truncated normal sampler, where property ~ N(
mu
,sigma
), betweenlower
andupper
.- Parameters
name (str) – Name of the property
observed (bool) – True if the property is observed, False if it is latent. Defaults to True
mu (
AuxiliaryParameter
) – Mean of the normaltau (
AuxiliaryParameter
) – Standard deviation of the normallower (
AuxiliaryParameter
) – Lower bound of the truncationupper (
AuxiliaryParameter
) – Upper bound of the truncationsigma (
AuxiliaryParameter
) – Standard deviation of normal distribution from which observed values are sampled, ifobserved
is True