Reference / binference.simulate.Truth
binference.simulate.Truth¶
- class binference.simulate.Truth(rho, labels, values, counts, n_drawn, extra=<factory>)[source]¶
The true population and objects behind a mock catalogue.
- Attributes:
- rho(K,) array
Population fractions the objects were drawn from.
- labels(N,) int array
True bin of every observed object.
- valuesarray or None
True continuous values of the observed objects (
Nonefor categories).- counts(K,) array
Realised histogram of the observed objects’ true bins.
- n_drawnint
Objects drawn before selection.
- __init__(rho, labels, values, counts, n_drawn, extra=<factory>)¶
Methods
__init__(rho, labels, values, counts, n_drawn)Attributes
rholabelsvaluescountsn_drawnextra