pub enum NormalError {
SdNotPositive(f64),
MeanNotFinite(f64),
SdNotFinite(f64),
XNotFinite(f64),
PNotInRange(f64),
QNotInRange(f64),
PQSumNotOne {
p: f64,
q: f64,
},
}Expand description
Errors that can arise constructing a Normal or evaluating its
inverse routines.
Variants§
SdNotPositive(f64)
The standard deviation σ was not strictly positive.
MeanNotFinite(f64)
The mean μ was not finite.
SdNotFinite(f64)
The standard deviation σ was not finite.
XNotFinite(f64)
The argument x was not finite.
PNotInRange(f64)
The probability p fell outside [0 . . 1] (or was non-finite).
QNotInRange(f64)
The probability q fell outside [0 . . 1] (or was non-finite).
PQSumNotOne
The pair (p, q) is not complementary (|p + q − 1| > 3 ε).
Mirrors CDFLIB’s cdfnor status 3 (cdflib.f90:5659).
Trait Implementations§
Source§impl Clone for NormalError
impl Clone for NormalError
Source§fn clone(&self) -> NormalError
fn clone(&self) -> NormalError
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for NormalError
impl Debug for NormalError
Source§impl Display for NormalError
impl Display for NormalError
Source§impl Error for NormalError
impl Error for NormalError
1.30.0 · Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0:
use the Display impl or to_string()
Source§impl PartialEq for NormalError
impl PartialEq for NormalError
Source§fn eq(&self, other: &NormalError) -> bool
fn eq(&self, other: &NormalError) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Copy for NormalError
impl StructuralPartialEq for NormalError
Auto Trait Implementations§
impl Freeze for NormalError
impl RefUnwindSafe for NormalError
impl Send for NormalError
impl Sync for NormalError
impl Unpin for NormalError
impl UnsafeUnpin for NormalError
impl UnwindSafe for NormalError
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more