passage-0.1: Parallel code generation for hierarchical Bayesian modeling.

Language.Passage.Distribution

Synopsis

Documentation

logit :: Floating a => a -> aSource

logBeta :: Expr -> Expr -> ExprSource

logFact :: Expr -> ExprSource

logComb :: Expr -> Expr -> ExprSource

stdNormal :: DistributionSource

A normal distribution with mean 0 and precision 1

normal :: Expr -> Expr -> DistributionSource

A normal distribution, with a mean and precision

standardUniform :: DistributionSource

uniform :: Expr -> Expr -> DistributionSource

discreteUniform :: Expr -> DistributionSource

geometric :: Expr -> DistributionSource

categorical :: Expr -> [Expr] -> DistributionSource

A categorical distribution with given support size and probabilities | Probabilities are assumed to add to one (not checked here)

bernoulli :: Expr -> DistributionSource

A Bernoulli distribution with a mean

binomial :: Expr -> Expr -> DistributionSource

A binomial distribution with given number of samples and probability of success | Number of samples is assumed to be fixed

negBinomial :: Expr -> Expr -> DistributionSource

poisson :: Expr -> DistributionSource

beta :: Expr -> Expr -> DistributionSource

A beta distribution with the given prior sample sizes.

dgamma :: Expr -> Expr -> DistributionSource

A gamma distribution with the given prior sample sizes.

improperUniform :: DistributionSource

An improper uniform distribution; has no impact on likelihood

improperScale :: DistributionSource

An improper scale