Trait statrs::statistics::CheckedMean [−][src]
pub trait CheckedMean<T> { fn checked_mean(&self) -> Result<T>; }
The CheckedMean
trait specifies that an object has a closed form
solution for its mean(s) with possible failure modes
Required methods
fn checked_mean(&self) -> Result<T>
[src]
Returns the mean.
Examples
use statrs::statistics::CheckedMean; use statrs::distribution::FisherSnedecor; let n = FisherSnedecor::new(1.0, 1.0).unwrap(); assert!(n.checked_mean().is_err());
Implementors
impl CheckedMean<f64> for FisherSnedecor
[src]
impl CheckedMean<f64> for FisherSnedecor
[src]impl CheckedMean<f64> for Hypergeometric
[src]
impl CheckedMean<f64> for Hypergeometric
[src]impl CheckedMean<f64> for InverseGamma
[src]
impl CheckedMean<f64> for InverseGamma
[src]impl CheckedMean<f64> for StudentsT
[src]
impl CheckedMean<f64> for StudentsT
[src]