Trait statrs::statistics::CheckedSkewness [−][src]
The CheckedSkewness
trait specifies an object that has a closed form
solution for its skewness(s) with possible failure modes
Required methods
fn checked_skewness(&self) -> Result<T>
[src]
Returns the skewness.
Examples
use statrs::statistics::CheckedSkewness; use statrs::distribution::FisherSnedecor; let n = FisherSnedecor::new(1.0, 1.0).unwrap(); assert!(n.checked_skewness().is_err());
Implementors
impl CheckedSkewness<f64> for FisherSnedecor
[src]
fn checked_skewness(&self) -> Result<f64>
[src]
Returns the skewness of the fisher-snedecor distribution
Errors
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