Reference / binference.simulate.population

binference.simulate.population

binference.simulate.population(bins, density='bimodal', tol=1e-06)[source]

Population fractions per bin from a density name, Density, callable or masses.

Parameters:
binsBins

The bins.

densitystr, Density, callable or array_like (K,), optional

A named density, a Density, a callable or masses. The names are "bimodal", "gaussian", "uniform" and "steep" on 1-D bins, "banana" and "gaussian" on 2-D grids.

tolfloat, optional

Tolerance of the adaptive quadrature over each bin.