Struct rv::dist::InvGamma [−][src]
Inverse gamma distribution IG(α, β)
Fields
shape: f64
scale: f64
Methods
impl InvGamma
[src]
impl InvGamma
pub fn new(shape: f64, scale: f64) -> Result<Self>
[src]
pub fn new(shape: f64, scale: f64) -> Result<Self>
Create a new Gamma
distribution with shape (α) and rate (β).
Trait Implementations
impl Debug for InvGamma
[src]
impl Debug for InvGamma
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 Clone for InvGamma
[src]
impl Clone for InvGamma
fn clone(&self) -> InvGamma
[src]
fn clone(&self) -> InvGamma
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)
Performs copy-assignment from source
. Read more
impl Variance<f64> for InvGamma
[src]
impl Variance<f64> for InvGamma
impl Entropy for InvGamma
[src]
impl Entropy for InvGamma
impl Skewness for InvGamma
[src]
impl Skewness for InvGamma
impl Kurtosis for InvGamma
[src]
impl Kurtosis for InvGamma
impl Rv<f32> for InvGamma
[src]
impl Rv<f32> for InvGamma
fn ln_f(&self, x: &f32) -> f64
[src]
fn ln_f(&self, x: &f32) -> f64
Un-normalized probability function Read more
fn ln_normalizer(&self) -> f64
[src]
fn ln_normalizer(&self) -> f64
The log of the constant term in the PDF/PMF. Should not be a function of any of the parameters. Read more
fn draw<R: Rng>(&self, rng: &mut R) -> f32
[src]
fn draw<R: Rng>(&self, rng: &mut R) -> f32
Single draw from the Rv
Read more
fn sample<R: Rng>(&self, n: usize, rng: &mut R) -> Vec<f32>
[src]
fn sample<R: Rng>(&self, n: usize, rng: &mut R) -> Vec<f32>
Multiple draws of the Rv
Read more
fn f(&self, x: &X) -> f64
[src]
fn f(&self, x: &X) -> f64
Un-normalized probability function Read more
fn normalizer(&self) -> f64
[src]
fn normalizer(&self) -> f64
The constant term in the PDF/PMF. Should not be a function of any of the parameters. Read more
impl ContinuousDistr<f32> for InvGamma
[src]
impl ContinuousDistr<f32> for InvGamma
fn pdf(&self, x: &X) -> f64
[src]
fn pdf(&self, x: &X) -> f64
The value of the Probability Density Function (PDF) at x
Read more
fn ln_pdf(&self, x: &X) -> f64
[src]
fn ln_pdf(&self, x: &X) -> f64
The value of the log Probability Density Function (PDF) at x
Read more
impl Support<f32> for InvGamma
[src]
impl Support<f32> for InvGamma
impl Cdf<f32> for InvGamma
[src]
impl Cdf<f32> for InvGamma
fn cdf(&self, x: &f32) -> f64
[src]
fn cdf(&self, x: &f32) -> f64
The value of the Cumulative Density Function at x
Read more
fn sf(&self, x: &X) -> f64
[src]
fn sf(&self, x: &X) -> f64
Survival function, 1 - CDF(x)
impl Mean<f32> for InvGamma
[src]
impl Mean<f32> for InvGamma
impl Mode<f32> for InvGamma
[src]
impl Mode<f32> for InvGamma
impl Rv<f64> for InvGamma
[src]
impl Rv<f64> for InvGamma
fn ln_f(&self, x: &f64) -> f64
[src]
fn ln_f(&self, x: &f64) -> f64
Un-normalized probability function Read more
fn ln_normalizer(&self) -> f64
[src]
fn ln_normalizer(&self) -> f64
The log of the constant term in the PDF/PMF. Should not be a function of any of the parameters. Read more
fn draw<R: Rng>(&self, rng: &mut R) -> f64
[src]
fn draw<R: Rng>(&self, rng: &mut R) -> f64
Single draw from the Rv
Read more
fn sample<R: Rng>(&self, n: usize, rng: &mut R) -> Vec<f64>
[src]
fn sample<R: Rng>(&self, n: usize, rng: &mut R) -> Vec<f64>
Multiple draws of the Rv
Read more
fn f(&self, x: &X) -> f64
[src]
fn f(&self, x: &X) -> f64
Un-normalized probability function Read more
fn normalizer(&self) -> f64
[src]
fn normalizer(&self) -> f64
The constant term in the PDF/PMF. Should not be a function of any of the parameters. Read more
impl ContinuousDistr<f64> for InvGamma
[src]
impl ContinuousDistr<f64> for InvGamma
fn pdf(&self, x: &X) -> f64
[src]
fn pdf(&self, x: &X) -> f64
The value of the Probability Density Function (PDF) at x
Read more
fn ln_pdf(&self, x: &X) -> f64
[src]
fn ln_pdf(&self, x: &X) -> f64
The value of the log Probability Density Function (PDF) at x
Read more
impl Support<f64> for InvGamma
[src]
impl Support<f64> for InvGamma
impl Cdf<f64> for InvGamma
[src]
impl Cdf<f64> for InvGamma
fn cdf(&self, x: &f64) -> f64
[src]
fn cdf(&self, x: &f64) -> f64
The value of the Cumulative Density Function at x
Read more
fn sf(&self, x: &X) -> f64
[src]
fn sf(&self, x: &X) -> f64
Survival function, 1 - CDF(x)
impl Mean<f64> for InvGamma
[src]
impl Mean<f64> for InvGamma
impl Mode<f64> for InvGamma
[src]
impl Mode<f64> for InvGamma