altar.cuda.distributions.cudaUniform

Module Contents

Classes

class altar.cuda.distributions.cudaUniform.cudaUniform(name, locator, **kwds)

Bases: altar.cuda.distributions.cudaDistribution.cudaDistribution

The cuda uniform probability distribution

support
doc = the support interval of the prior distribution
cuInitSample(self, theta)

Fill my portion of {theta} with initial random values from my distribution.

cuVerify(self, theta, mask)

Check whether my portion of the samples in {theta} are consistent with my constraints, and update {mask}, a vector with zeroes for valid samples and non-zero for invalid ones :param theta cuArray: :type theta cuArray: samples x total_parameters

cuEvalPrior(self, theta, prior, batch)

Fill my portion of {likelihood} with the likelihoods of the samples in {theta}