pub enum ChiSqError {
InvalidSamples {
samples: usize,
},
InvalidBins {
bins: usize,
},
SamplesLessThanBins {
samples: usize,
bins: usize,
},
InvalidZLimit {
z_limit: f64,
},
EmptyCaseName,
DuplicateCaseName {
name: String,
},
NonFiniteSample {
case: String,
sample_index: usize,
value: f64,
},
OutOfRangeSample {
case: String,
sample_index: usize,
value: f64,
},
}Expand description
Errors that can occur while configuring or running a chi-squared test.
Variants§
InvalidSamples
Zero samples were requested.
InvalidBins
Fewer than two bins were requested.
SamplesLessThanBins
Fewer samples than bins were requested (the test would be meaningless).
InvalidZLimit
A non-positive or non-finite z-limit was supplied.
EmptyCaseName
A test case name was empty or whitespace-only.
DuplicateCaseName
Two cases in the same suite shared a name.
NonFiniteSample
The generator produced a non-finite (NaN/inf) value.
OutOfRangeSample
The generator produced a value outside [0, 1).
Trait Implementations§
Source§impl Debug for ChiSqError
impl Debug for ChiSqError
Source§impl Display for ChiSqError
impl Display for ChiSqError
Source§impl Error for ChiSqError
impl Error for ChiSqError
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 From<ChiSqError> for SuiteError
impl From<ChiSqError> for SuiteError
Source§fn from(source: ChiSqError) -> Self
fn from(source: ChiSqError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for ChiSqError
impl RefUnwindSafe for ChiSqError
impl Send for ChiSqError
impl Sync for ChiSqError
impl Unpin for ChiSqError
impl UnsafeUnpin for ChiSqError
impl UnwindSafe for ChiSqError
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