popsynth.aux_samplers.lognormal_aux_sampler module

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

Bases: AuxiliarySampler

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

A Log normal sampler, where property ~ e^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 lognormal

  • tau (AuxiliaryParameter) – Standard deviation of the lognormal

  • 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]
class popsynth.aux_samplers.lognormal_aux_sampler.Log10NormalAuxSampler(name: str, observed: bool = True)[source]

Bases: AuxiliarySampler

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

A Log10 normal sampler, where property ~ 10^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 log10normal

  • tau (AuxiliaryParameter) – Standard deviation of the log10normal

  • 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]