popsynth.aux_samplers.normal_aux_sampler module

class popsynth.aux_samplers.normal_aux_sampler.NormalAuxSampler(name: str, observed: bool = True)[source]

Bases: AuxiliarySampler

mu
tau
sigma
__init__(name: str, observed: bool = True)[source]

A normal distribution sampler, where property ~ N(mu, sigma).

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

  • sigma (AuxiliaryParameter) – Standard deviation of normal distribution from which observed values are sampled, if observed is True

true_sampler(size: int)[source]
observation_sampler(size: int)[source]