Struct rand::distributions::gamma::GammaSmallShape [] [src]

struct GammaSmallShape {
    inv_shape: f64,
    large_shape: GammaLargeShape,
}
Unstable (rand)

: use rand from crates.io

Gamma distribution where the shape parameter is less than 1.

Note, samples from this require a compulsory floating-point pow call, which makes it significantly slower than sampling from a gamma distribution where the shape parameter is greater than or equal to 1.

See Gamma for sampling from a Gamma distribution with general shape parameters.

Fields

inv_shape
Unstable (rand)

: use rand from crates.io

large_shape
Unstable (rand)

: use rand from crates.io

Methods

impl GammaSmallShape

fn new_raw(shape: f64, scale: f64) -> GammaSmallShape

Unstable (rand)

: use rand from crates.io

Trait Implementations

impl Sample<f64> for GammaSmallShape

fn sample<R: Rng>(&mut self, rng: &mut R) -> f64

impl IndependentSample<f64> for GammaSmallShape

fn ind_sample<R: Rng>(&self, rng: &mut R) -> f64