pub struct SkewNormal {
pub alpha: f64,
pub loc: f64,
pub scale: f64,
}Expand description
The skew-normal distribution with shape α (SciPy’s skewnorm(a=α, loc, scale)):
density 2 φ(z) Φ(αz) / scale.
Fields§
§alpha: f64§loc: f64§scale: f64Implementations§
Trait Implementations§
Source§impl Clone for SkewNormal
impl Clone for SkewNormal
Source§impl ContinuousDistribution for SkewNormal
impl ContinuousDistribution for SkewNormal
fn mean(&self) -> f64
fn variance(&self) -> f64
fn skewness(&self) -> f64
Source§fn excess_kurtosis(&self) -> f64
fn excess_kurtosis(&self) -> f64
The excess kurtosis (zero for the normal distribution), as SciPy’s
stats(moments='k').Source§fn logpdf(&self, x: f64) -> f64
fn logpdf(&self, x: f64) -> f64
The log density (more accurate than
pdf(x).ln() in the tails where overridden).Source§fn ppf(&self, p: f64) -> f64
fn ppf(&self, p: f64) -> f64
The quantile (percent-point) function, the inverse of the distribution function.
fn std(&self) -> f64
fn median(&self) -> f64
Source§fn interval(&self, confidence: f64) -> (f64, f64)
fn interval(&self, confidence: f64) -> (f64, f64)
The central interval containing a fraction
confidence of the probability.Source§fn log_likelihood(&self, data: &[f64]) -> f64
fn log_likelihood(&self, data: &[f64]) -> f64
Σ log f(xᵢ).impl Copy for SkewNormal
Source§impl Debug for SkewNormal
impl Debug for SkewNormal
Source§impl Fit for SkewNormal
impl Fit for SkewNormal
Source§impl PartialEq for SkewNormal
impl PartialEq for SkewNormal
impl StructuralPartialEq for SkewNormal
Auto Trait Implementations§
impl Freeze for SkewNormal
impl RefUnwindSafe for SkewNormal
impl Send for SkewNormal
impl Sync for SkewNormal
impl Unpin for SkewNormal
impl UnsafeUnpin for SkewNormal
impl UnwindSafe for SkewNormal
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more