pub enum SplineError {
EmptyInput,
NonFiniteValue,
InvalidRange,
NotEnoughBasis {
n_basis: usize,
degree: usize,
},
InvalidKnots,
NotEnoughKnots {
min: usize,
},
InvalidPeriod,
RowMismatch {
expected: usize,
actual: usize,
},
ParameterOverflow,
UnsupportedDegree {
degree: usize,
},
Model(ModelError),
}Expand description
Errors for spline basis and spline design matrix construction.
Variants§
EmptyInput
Input vector is empty.
NonFiniteValue
Input vector contains NaN or infinity.
InvalidRange
Data range does not have two distinct finite boundaries and a finite span.
NotEnoughBasis
Number of basis functions is insufficient for the spline degree.
InvalidKnots
Knot vector contains non-finite values or is decreasing.
NotEnoughKnots
Knot vector does not contain enough knots.
InvalidPeriod
Period must be a finite positive number.
RowMismatch
Predictor blocks have different row counts.
ParameterOverflow
Parameter count overflowed usize.
UnsupportedDegree
The spline degree is not supported by this compact predictor.
Model(ModelError)
Core design matrix error.
Trait Implementations§
Source§impl Clone for SplineError
impl Clone for SplineError
Source§impl Debug for SplineError
impl Debug for SplineError
Source§impl Display for SplineError
impl Display for SplineError
impl Eq for SplineError
Source§impl Error for SplineError
impl Error for SplineError
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<ModelError> for SplineError
impl From<ModelError> for SplineError
Source§fn from(source: ModelError) -> Self
fn from(source: ModelError) -> Self
Converts to this type from the input type.
Source§impl PartialEq for SplineError
impl PartialEq for SplineError
impl StructuralPartialEq for SplineError
Auto Trait Implementations§
impl Freeze for SplineError
impl RefUnwindSafe for SplineError
impl Send for SplineError
impl Sync for SplineError
impl Unpin for SplineError
impl UnsafeUnpin for SplineError
impl UnwindSafe for SplineError
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