Trait statrs::statistics::CheckedMode [−][src]
The CheckedMode
trait specifies that an object has a closed form solution
for its mode(s) with a possible failure mode
Required methods
fn checked_mode(&self) -> Result<T>
[src]
Returns the mode.
Examples
use statrs::statistics::CheckedMode; use statrs::distribution::Beta; let n = Beta::new(1.0, 1.0).unwrap(); assert!(n.checked_mode().is_err());