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 GammaSmallShape
fn new_raw(shape: f64, scale: f64) -> GammaSmallShape
[src]
fn new_raw(shape: f64, scale: f64) -> GammaSmallShape
Trait Implementations
impl Clone for GammaSmallShape
[src]
impl Clone for GammaSmallShape
fn clone(&self) -> GammaSmallShape
[src]
fn clone(&self) -> GammaSmallShape
Returns 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 GammaSmallShape
impl Debug for GammaSmallShape
[src]
impl Debug for GammaSmallShape
fn fmt(&self, f: &mut Formatter) -> Result
[src]
fn fmt(&self, f: &mut Formatter) -> Result
Formats the value using the given formatter. Read more
impl Sample<f64> for GammaSmallShape
[src]
impl Sample<f64> for GammaSmallShape
fn sample<R: Rng>(&mut self, rng: &mut R) -> f64
[src]
fn sample<R: Rng>(&mut self, rng: &mut R) -> f64
Generate a random value of Support
, using rng
as the source of randomness. Read more
impl IndependentSample<f64> for GammaSmallShape
[src]
impl IndependentSample<f64> for GammaSmallShape
fn ind_sample<R: Rng>(&self, rng: &mut R) -> f64
[src]
fn ind_sample<R: Rng>(&self, rng: &mut R) -> f64
Generate a random value.
Auto Trait Implementations
impl Send for GammaSmallShape
impl Send for GammaSmallShape
impl Sync for GammaSmallShape
impl Sync for GammaSmallShape