figaro.rateΒΆ

Functions

normalise_alpha_factor(draws[, dvdz, ...])

Normalise the alpha factor for each DPGMM realisation.

plot_differential_rate(draws, rate[, ...])

Plot the recovered 1D distribution along with the injected distribution and samples from the true distribution (both if available).

plot_integrated_rate(samples[, out_folder, ...])

Plot the integrated rate distribution.

sample_VT(draws, selfunc, T[, size, ...])

Draw samples from the VT distribution given the astrophysical distribution of quantities, the selection function and the observing time.

sample_rate(draws, n_obs, selfunc, T[, ...])

Compute the integrated rate given a set of draws.