# Utility Functions¶

## Function Reference¶

qinfer.utils.binomial_pdf(N, n, p)[source]
qinfer.utils.outer_product(vec)[source]
qinfer.utils.particle_meanfn(weights, locations, fn=None)[source]
qinfer.utils.particle_covariance_mtx(weights, locations)[source]

Returns an estimate of the covariance of a distribution represented by a given set of SMC particle.

Parameters: weights – An array containing the weights of each particle. location – An array containing the locations of each particle. numpy.ndarray, shape (n_modelparams, n_modelparams). An array containing the estimated covariance matrix.
qinfer.utils.ellipsoid_volume(A=None, invA=None)[source]
qinfer.utils.mvee(points, tol=0.001)[source]
qinfer.utils.uniquify(seq)[source]
qinfer.utils.format_uncertainty(value, uncertianty, scinotn_break=4)[source]