# BEAST v2.6.7 Documentation: beast.math.distributions.Prior

BEASTObject that performs calculations based on the State.

Probabilistic representation that can produce a log probability for instance for running an MCMC chain.

Produces prior (log) probability of value x.If x is multidimensional, the components of x are assumed to be independent, so the sum of log probabilities of all elements of x is returned as the prior.

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

## Inputs:

x, distr

x
type: beast.core.Function |

point at which the density is calculated |

Required input |

distr
type: beast.math.distributions.ParametricDistribution |

distribution used to calculate prior, e.g. normal, beta, gamma. |

Required input |