Struct probability::distribution::Gamma[][src]

pub struct Gamma { /* fields omitted */ }

A gamma distribution.

Methods

impl Gamma
[src]

Create a gamma distribution with shape parameter k and scale parameter theta.

It should hold that k > 0 and theta > 0.

Return the shape parameter.

Return the scale parameter.

Trait Implementations

impl Clone for Gamma
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl Copy for Gamma
[src]

impl Debug for Gamma
[src]

Formats the value using the given formatter. Read more

impl Continuous for Gamma
[src]

Compute the probability density function.

impl Distribution for Gamma
[src]

The type of outcomes.

Compute the cumulative distribution function.

impl Entropy for Gamma
[src]

Compute the differential entropy. Read more

impl Kurtosis for Gamma
[src]

Compute the excess kurtosis.

impl Mean for Gamma
[src]

Compute the expected value.

impl Modes for Gamma
[src]

Compute the modes.

impl Sample for Gamma
[src]

Draw a sample.

References

  1. G. Marsaglia and W. W. Tsang, “A simple method for generating gamma variables,” ACM Transactions on Mathematical Software, vol. 26, no. 3, pp. 363–372, September 2000.

impl Skewness for Gamma
[src]

Compute the skewness.

impl Variance for Gamma
[src]

Compute the variance.

Compute the standard deviation.

Auto Trait Implementations

impl Send for Gamma

impl Sync for Gamma