Trait statrs::statistics::CheckedMean [−][src]
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());