figaro.utilsΒΆ

Functions

get_priors(bounds[, samples, mean, std, df, ...])

This method takes the prior parameters for the Normal-Inverse-Wishart distribution in the natural space and returns them as parameters in the probit space, ordered as required by FIGARO.

gradient_median(x, draws)

Computes the gradient of the median distribution (slow but numerically stable)

load_options(opts, parser)

Loads options for the run (reproducibility)

make_gaussian_mixture(mu, cov, bounds[, ...])

Builds mixtures composed of equally-weighted Gaussian distribution.

recursive_grid(bounds, n_pts[, get_1d])

Recursively generates the n-dimensional grid points (extremes are excluded).

rejection_sampler(n_draws, f, bounds[, selfunc])

Rejection sampler, allows for a selection function

rvs_median(draws[, size])

Generates samples from median distribution of a set of draws.

save_options(options, out_folder[, name])

Saves options for the run (reproducibility)