pub enum LowessError {
EmptyInput,
MismatchedInputs {
x_len: usize,
y_len: usize,
},
InvalidFraction(f64),
InvalidDelta(f64),
InvalidNumericValue(String),
TooFewPoints {
got: usize,
min: usize,
},
InvalidConfidenceLevel(f64),
}Expand description
LOWESS error types.
Variants§
EmptyInput
Empty input arrays.
MismatchedInputs
Input arrays have different lengths.
Fields
InvalidFraction(f64)
Fraction not in range (0, 1].
InvalidDelta(f64)
Negative delta value.
InvalidNumericValue(String)
Invalid numeric value in inputs (NaN or infinite).
TooFewPoints
Not enough points for smoothing.
InvalidConfidenceLevel(f64)
Confidence level not in range (0, 1).
Trait Implementations§
Source§impl Clone for LowessError
impl Clone for LowessError
Source§fn clone(&self) -> LowessError
fn clone(&self) -> LowessError
Returns a duplicate of the value. Read more
1.0.0 · 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 LowessError
impl Debug for LowessError
Source§impl Display for LowessError
impl Display for LowessError
Source§impl Error for LowessError
Available on crate feature std only.
impl Error for LowessError
Available on crate feature
std only.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 LowessError
impl PartialEq for LowessError
impl StructuralPartialEq for LowessError
Auto Trait Implementations§
impl Freeze for LowessError
impl RefUnwindSafe for LowessError
impl Send for LowessError
impl Sync for LowessError
impl Unpin for LowessError
impl UnwindSafe for LowessError
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more