popsynth.aux_samplers.delta_aux_sampler module¶
-
class
popsynth.aux_samplers.delta_aux_sampler.DeltaAuxSampler(name: str, observed: bool = True)[source]¶ Bases:
popsynth.auxiliary_sampler.AuxiliarySampler-
__init__(name: str, observed: bool = True)[source]¶ A delta-function sampler for which the true value is fixed at
xp. Assumes property is observed by default, in which case the observed value is sampled from the true value with some normally-distributed error,sigma.Parameters: - name (str) – Name of the property
- observed (bool) – True if the property is observed, False if it is latent. Defaults to True
- xp (
AuxiliaryParameter) – Value at which delta function is located - sigma (
AuxiliaryParameter) – Standard deviation of normal distribution from which observed values are sampled, ifobservedis True
-
sigma¶
-
xp¶
-