figaro.marginal module

figaro.marginal.condition(draws, vals, dims, norm=True, filter=True, tol=0.0001)[source]

Probability density conditioned on specific values of a subset of parameters.

Parameters:
  • draws (figaro.mixture.mixture) – mixture(s)

  • vals (iterable) – value(s) to condition on

  • dims (int or list of int) – dimension(s) associated with given vals (starting from 0)

  • norm (bool) – normalize the distribution

  • filter (bool) – filter the components with weight < tol

  • tol (double) – tolerance on the sum of the weights

Returns:

the conditioned mixture(s)

Return type:

figaro.mixture.mixture

figaro.marginal.marginalise(draws, axis=-1)[source]

Marginalise out one or more dimensions from a FIGARO draw.

Parameters:
Returns:

the marginalised mixture(s)

Return type:

figaro.mixture.mixture