popsynth.aux_samplers.trunc_normal_aux_sampler module¶
-
class
popsynth.aux_samplers.trunc_normal_aux_sampler.TruncatedNormalAuxSampler(name: str, observed: bool = True)[source]¶ Bases:
popsynth.auxiliary_sampler.AuxiliarySampler-
__init__(name: str, observed: bool = True)[source]¶ A truncated normal sampler, where property ~ N(
mu,sigma), betweenlowerandupper.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 normal - tau (
AuxiliaryParameter) – Standard deviation of the normal - lower (
AuxiliaryParameter) – Lower bound of the truncation - upper (
AuxiliaryParameter) – Upper bound of the truncation - sigma (
AuxiliaryParameter) – Standard deviation of normal distribution from which observed values are sampled, ifobservedis True
-
lower¶
-
mu¶
-
sigma¶
-
tau¶
-
upper¶
-