pub enum TermSpec {
Intercept,
Linear {
col: Col<f64>,
},
Offset {
col: Col<f64>,
},
Indicator {
col: Col<bool>,
},
Factor {
col: Col<Category>,
},
Interaction {
left: Col<f64>,
right: Col<f64>,
},
PSpline(PSplineTerm),
CyclicPSpline(CyclicPSplineTerm),
Fourier(FourierTerm),
TensorPSpline(TensorPSplineTerm),
Monotone(MonotoneTerm),
}Expand description
Pre-data term specification.
Variants§
Intercept
Intercept column of ones.
Linear
Linear term backed by one numeric column.
Offset
Numeric offset added to the predictor without adding coefficients.
Indicator
Boolean indicator term.
Factor
Treatment-coded categorical term.
Interaction
Product of two numeric columns.
PSpline(PSplineTerm)
Open-uniform P-spline term.
CyclicPSpline(CyclicPSplineTerm)
Cyclic P-spline term.
Fourier(FourierTerm)
Fourier seasonal term.
TensorPSpline(TensorPSplineTerm)
Tensor-product open-uniform P-spline term.
Monotone(MonotoneTerm)
Hard-monotone I-spline term.
Trait Implementations§
impl StructuralPartialEq for TermSpec
Auto Trait Implementations§
impl Freeze for TermSpec
impl RefUnwindSafe for TermSpec
impl Send for TermSpec
impl Sync for TermSpec
impl Unpin for TermSpec
impl UnsafeUnpin for TermSpec
impl UnwindSafe for TermSpec
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