Trait statrs::statistics::Skewness [−][src]
pub trait Skewness<T> { fn skewness(&self) -> T; }
The Skewness
trait specifies an object that has a closed form solution
for its skewness(s)
Required methods
fn skewness(&self) -> T
[src]
Returns the skewness. May panic depending on the implementor.
Examples
use statrs::statistics::Skewness; use statrs::distribution::Uniform; let n = Uniform::new(0.0, 1.0).unwrap(); assert_eq!(0.0, n.skewness());
Implementors
impl Skewness<f64> for ChiSquared
[src]
impl Skewness<f64> for ChiSquared
[src]impl Skewness<f64> for DiscreteUniform
[src]
impl Skewness<f64> for DiscreteUniform
[src]impl Skewness<f64> for Exponential
[src]
impl Skewness<f64> for Exponential
[src]impl Skewness<f64> for FisherSnedecor
[src]
impl Skewness<f64> for FisherSnedecor
[src]fn skewness(&self) -> f64
[src]
Returns the skewness of the fisher-snedecor distribution
Panics
If freedom_2 <= 6.0
Remarks
Returns NaN
if freedom_1
or freedom_2
is INF
Formula
ⓘ
((2d1 + d2 - 2) * sqrt(8 * (d2 - 4))) / ((d2 - 6) * sqrt(d1 * (d1 + d2 - 2)))
where d1
is the first degree of freedom and d2
is
the second degree of freedom
impl Skewness<f64> for Hypergeometric
[src]
impl Skewness<f64> for Hypergeometric
[src]impl Skewness<f64> for InverseGamma
[src]
impl Skewness<f64> for InverseGamma
[src]impl Skewness<f64> for Triangular
[src]
impl Skewness<f64> for Triangular
[src]