BEAST v2.7.8 Documentation: beastlabs.math.distributions.BernoulliDistribution

BEASTObject that performs calculations based on the State.
Probabilistic representation that can produce a log probability for instance for running an MCMC chain.
Bernoulli distribution, used as prior or likelihood.If the input x is a multidimensional parameter, each of the dimensions is considered as a separate independent component.

Logable: yes, this can be used in a log.

Inputs:

p, parameter, minSuccesses

 

p
type: beast.base.inference.parameter.RealParameter
probability p parameter. Must be either size 1 for iid trials, or the same dimension as trials parameter if inhomogeneous bernoulli process.
Required input

 

parameter
type: beast.base.inference.parameter.BooleanParameter
the results of a series of bernoulli trials.
Optional input

 

minSuccesses
type: beast.base.inference.parameter.IntegerParameter
Optional condition: the minimum number of ones in the boolean array.
Optional input