Skip to main content

fast_generator_inversion

Function fast_generator_inversion 

Source
pub fn fast_generator_inversion<'a>(
    dist: &'a dyn ContinuousDistribution,
) -> Result<FastGeneratorInversion<'a>, ErrorsJSL>
Expand description

A generator by fast numerical inversion of a distribution (SciPy’s FastGeneratorInversion): polynomial inversion of the density of dist on its support (order 5, resolution 1e-12), with ppf, cdf, rvs and qrvs_sobol. The centre, where the density is positive, is the median.