pub enum StatsError {
EmptyData,
LengthMismatch {
expected: usize,
got: usize,
},
InvalidParameter(String),
DimensionMismatch(String),
SingularMatrix,
ConvergenceFailure(String),
}Expand description
Errors that can occur during statistical computations.
Variants§
EmptyData
Empty data set.
LengthMismatch
Data sets have mismatched lengths.
InvalidParameter(String)
Invalid parameter value.
DimensionMismatch(String)
Dimension mismatch.
SingularMatrix
Singular matrix encountered.
ConvergenceFailure(String)
Computation did not converge.
Trait Implementations§
Source§impl Clone for StatsError
impl Clone for StatsError
Source§fn clone(&self) -> StatsError
fn clone(&self) -> StatsError
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 StatsError
impl Debug for StatsError
Source§impl Display for StatsError
impl Display for StatsError
Source§impl From<StatsError> for NumraError
impl From<StatsError> for NumraError
Source§fn from(e: StatsError) -> Self
fn from(e: StatsError) -> Self
Converts to this type from the input type.
Source§impl PartialEq for StatsError
impl PartialEq for StatsError
Source§fn eq(&self, other: &StatsError) -> bool
fn eq(&self, other: &StatsError) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for StatsError
Auto Trait Implementations§
impl Freeze for StatsError
impl RefUnwindSafe for StatsError
impl Send for StatsError
impl Sync for StatsError
impl Unpin for StatsError
impl UnsafeUnpin for StatsError
impl UnwindSafe for StatsError
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