Home
last modified time | relevance | path

Searched refs:BernoulliError (Results 1 – 3 of 3) sorted by relevance

/external/rust/crates/rand/src/distributions/
Dbernoulli.rs70 pub enum BernoulliError { enum
75 impl fmt::Display for BernoulliError { implementation
78 BernoulliError::InvalidProbability => "p is outside [0, 1] in Bernoulli distribution", in fmt()
84 impl ::std::error::Error for BernoulliError {} implementation
98 pub fn new(p: f64) -> Result<Bernoulli, BernoulliError> { in new() argument
103 return Err(BernoulliError::InvalidProbability); in new()
119 pub fn from_ratio(numerator: u32, denominator: u32) -> Result<Bernoulli, BernoulliError> { in from_ratio() argument
121 return Err(BernoulliError::InvalidProbability); in from_ratio()
Dmod.rs119 pub use self::bernoulli::{Bernoulli, BernoulliError};
/external/rust/crates/rand/
DCHANGELOG.md123 - Implement `std::error::Error` for `BernoulliError` (#919)