altar.models.Contiguous

Module Contents

Classes

class altar.models.Contiguous.Contiguous(name, locator, **kwds)

Bases: altar.component

A contiguous parameter set

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
offset = 0
initialize(self, model, offset)

Initialize my state given the {model} that owns me

initializeSample(self, theta)

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

priorLikelihood(self, theta, priorLLK)

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

verify(self, theta, mask)

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

restrict(self, theta)

Return my portion of the sample matrix {theta}