[−][src]Struct rv::dist::Gamma
Gamma distribution G(α, β) over x in (0, ∞).
NOTE: The gamma distribution is parameterized in terms of shape, α, and rate, β.
β^α
f(x|α, β) = ---- x^(α-1) e^(-βx)
Γ(α)
Fields
shape: f64
rate: f64
Methods
impl Gamma
[src]
pub fn new(shape: f64, rate: f64) -> Result<Self>
[src]
Create a new Gamma
distribution with shape (α) and rate (β).
Trait Implementations
impl Rv<f32> for Gamma
[src]
fn ln_f(&self, x: &f32) -> f64
[src]
fn draw<R: Rng>(&self, rng: &mut R) -> f32
[src]
fn sample<R: Rng>(&self, n: usize, rng: &mut R) -> Vec<f32>
[src]
fn f(&self, x: &X) -> f64
[src]
Probability function Read more
impl Rv<f64> for Gamma
[src]
fn ln_f(&self, x: &f64) -> f64
[src]
fn draw<R: Rng>(&self, rng: &mut R) -> f64
[src]
fn sample<R: Rng>(&self, n: usize, rng: &mut R) -> Vec<f64>
[src]
fn f(&self, x: &X) -> f64
[src]
Probability function Read more
impl Support<f32> for Gamma
[src]
impl Support<f64> for Gamma
[src]
impl ContinuousDistr<f32> for Gamma
[src]
fn pdf(&self, x: &X) -> f64
[src]
The value of the Probability Density Function (PDF) at x
Read more
fn ln_pdf(&self, x: &X) -> f64
[src]
The value of the log Probability Density Function (PDF) at x
Read more
impl ContinuousDistr<f64> for Gamma
[src]
fn pdf(&self, x: &X) -> f64
[src]
The value of the Probability Density Function (PDF) at x
Read more
fn ln_pdf(&self, x: &X) -> f64
[src]
The value of the log Probability Density Function (PDF) at x
Read more
impl Cdf<f32> for Gamma
[src]
impl Cdf<f64> for Gamma
[src]
impl Mean<f32> for Gamma
[src]
impl Mean<f64> for Gamma
[src]
impl Mode<f32> for Gamma
[src]
impl Mode<f64> for Gamma
[src]
impl Variance<f64> for Gamma
[src]
impl Entropy for Gamma
[src]
impl Skewness for Gamma
[src]
impl Kurtosis for Gamma
[src]
impl PartialOrd<Gamma> for Gamma
[src]
fn partial_cmp(&self, other: &Gamma) -> Option<Ordering>
[src]
fn lt(&self, other: &Gamma) -> bool
[src]
fn le(&self, other: &Gamma) -> bool
[src]
fn gt(&self, other: &Gamma) -> bool
[src]
fn ge(&self, other: &Gamma) -> bool
[src]
impl<'_> From<&'_ Gamma> for String
[src]
impl PartialEq<Gamma> for Gamma
[src]
impl Clone for Gamma
[src]
fn clone(&self) -> Gamma
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more
impl Default for Gamma
[src]
impl Display for Gamma
[src]
impl Debug for Gamma
[src]
Auto Trait Implementations
Blanket Implementations
impl<T> ApiReady for T where
T: Clone + Debug + PartialOrd<T> + PartialEq<T>,
[src]
T: Clone + Debug + PartialOrd<T> + PartialEq<T>,
impl<T> From<T> for T
[src]
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T> ToString for T where
T: Display + ?Sized,
[src]
T: Display + ?Sized,
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Same<T> for T
type Output = T
Should always be Self
impl<SS, SP> SupersetOf<SS> for SP where
SS: SubsetOf<SP>,
SS: SubsetOf<SP>,