# BEAST v2.6.7 Documentation: beast.core.util.CompoundDistribution

BEASTObject that performs calculations based on the State.

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

Takes a collection of distributions, typically a number of likelihoods and priors and combines them into the compound of these distributions typically interpreted as the posterior.

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

## Inputs:

distribution, useThreads, threads, ignore

distribution
type: beast.core.Distribution*** |

individual probability distributions, e.g. the likelihood and prior making up a posterior |

Optional input |

useThreads
type: java.lang.Boolean |

calculated the distributions in parallel using threads (default false) |

Optional input. Default: false |

threads
type: java.lang.Integer |

maximum number of threads to use, if less than 1 the number of threads in BeastMCMC is used (default -1) |

Optional input. Default: -1 |

ignore
type: java.lang.Boolean |

ignore all distributions and return 1 as distribution (default false) |

Optional input. Default: false |