pub enum ClusteringError {
EmptyInput,
ZeroDimension,
DimensionMismatch {
expected: usize,
actual: usize,
point: usize,
},
NonFiniteInput {
point: usize,
coordinate: usize,
value: f64,
},
InvalidComponentCount {
components: usize,
points: usize,
},
InvalidControl {
field: &'static str,
reason: &'static str,
},
WorkLimit {
limit: u64,
used: u64,
},
ArithmeticOverflow {
operation: &'static str,
},
SingularComponent {
component: usize,
},
NumericalFailure {
operation: &'static str,
},
}Expand description
Errors returned by clustering and mixture-model fitting.
Variants§
EmptyInput
No observations were supplied.
ZeroDimension
An observation had no coordinates.
DimensionMismatch
Observation dimensions were inconsistent.
Fields
NonFiniteInput
An observation contained NaN or infinity.
Fields
InvalidComponentCount
A requested component count cannot be fitted to the observations.
InvalidControl
A control or model field was invalid.
Fields
WorkLimit
The work bound could not admit one complete initial model.
ArithmeticOverflow
Size or work accounting overflowed.
SingularComponent
A component could not be made numerically nonsingular under policy.
NumericalFailure
Finite inputs produced a non-finite intermediate result.
Trait Implementations§
Source§impl Clone for ClusteringError
impl Clone for ClusteringError
Source§fn clone(&self) -> ClusteringError
fn clone(&self) -> ClusteringError
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 ClusteringError
impl Debug for ClusteringError
Source§impl Display for ClusteringError
impl Display for ClusteringError
Source§impl Error for ClusteringError
impl Error for ClusteringError
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 ClusteringError
impl PartialEq for ClusteringError
impl StructuralPartialEq for ClusteringError
Auto Trait Implementations§
impl Freeze for ClusteringError
impl RefUnwindSafe for ClusteringError
impl Send for ClusteringError
impl Sync for ClusteringError
impl Unpin for ClusteringError
impl UnsafeUnpin for ClusteringError
impl UnwindSafe for ClusteringError
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