altar.models.ParameterSet

Module Contents

Classes

class altar.models.ParameterSet.ParameterSet

Bases: altar.protocol

The protocol that all AlTar parameter sets must implement

count
doc = the number of parameters in this set
prior
doc = the prior distribution
prep
doc = the distribution to use to initialize this parameter set
initialize(self, model, offset)

Initialize the parameter set given the {model} that owns it

initializeSample(self, theta)

Fill {theta} with an initial random sample from my prior distribution.

priorLikelihood(self, theta, priorLLK)

Fill {priorLLK} with the likelihoods of the samples in {theta} in my prior distribution

verify(self, theta, mask)

Check whether the samples in {theta} are consistent with the model requirements and update the {mask}, a vector with zeroes for valid samples and non-zero for invalid ones

classmethod pyre_default(cls, **kwds)

Supply a default implementation