Struct rand::distributions::gamma::GammaSmallShape [−][src]
struct GammaSmallShape {
inv_shape: f64,
large_shape: GammaLargeShape,
}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: f64
large_shape: GammaLargeShape
Methods
impl GammaSmallShape[src]
impl GammaSmallShapefn new_raw(shape: f64, scale: f64) -> GammaSmallShape[src]
fn new_raw(shape: f64, scale: f64) -> GammaSmallShapeTrait Implementations
impl Clone for GammaSmallShape[src]
impl Clone for GammaSmallShapefn clone(&self) -> GammaSmallShape[src]
fn clone(&self) -> GammaSmallShapeReturns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)1.0.0[src]
fn clone_from(&mut self, source: &Self)1.0.0
[src]Performs copy-assignment from source. Read more
impl Copy for GammaSmallShape[src]
impl Copy for GammaSmallShapeimpl Debug for GammaSmallShape[src]
impl Debug for GammaSmallShapefn fmt(&self, f: &mut Formatter) -> Result[src]
fn fmt(&self, f: &mut Formatter) -> ResultFormats the value using the given formatter. Read more
impl Sample<f64> for GammaSmallShape[src]
impl Sample<f64> for GammaSmallShapefn sample<R: Rng>(&mut self, rng: &mut R) -> f64[src]
fn sample<R: Rng>(&mut self, rng: &mut R) -> f64Generate a random value of Support, using rng as the source of randomness. Read more
impl IndependentSample<f64> for GammaSmallShape[src]
impl IndependentSample<f64> for GammaSmallShapefn ind_sample<R: Rng>(&self, rng: &mut R) -> f64[src]
fn ind_sample<R: Rng>(&self, rng: &mut R) -> f64Generate a random value.
Auto Trait Implementations
impl Send for GammaSmallShape
impl Send for GammaSmallShapeimpl Sync for GammaSmallShape
impl Sync for GammaSmallShape