pub struct SplrepOptions<'a> {
pub w: Option<&'a [f64]>,
pub k: usize,
pub s: f64,
pub xb: Option<f64>,
pub xe: Option<f64>,
pub nest: Option<usize>,
}Expand description
Options for make_splrep, make_splprep and generate_knots (SciPy’s keyword
arguments; the defaults are SciPy’s).
Fields§
§w: Option<&'a [f64]>Weights, one per point (default all one); the residuals are wᵢ (yᵢ − g(xᵢ)).
k: usizeThe degree (default 3).
s: f64The smoothing factor s ≥ 0 (default 0, interpolation).
xb: Option<f64>The ends of the approximation interval (default the first and last x).
xe: Option<f64>§nest: Option<usize>Stop adding knots once there are at least this many (default no limit beyond the
interpolating spline’s m + k + 1).
Trait Implementations§
Source§impl<'a> Clone for SplrepOptions<'a>
impl<'a> Clone for SplrepOptions<'a>
Source§impl<'a> Debug for SplrepOptions<'a>
impl<'a> Debug for SplrepOptions<'a>
Auto Trait Implementations§
impl<'a> Freeze for SplrepOptions<'a>
impl<'a> RefUnwindSafe for SplrepOptions<'a>
impl<'a> Send for SplrepOptions<'a>
impl<'a> Sync for SplrepOptions<'a>
impl<'a> Unpin for SplrepOptions<'a>
impl<'a> UnsafeUnpin for SplrepOptions<'a>
impl<'a> UnwindSafe for SplrepOptions<'a>
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