Trait peroxide::numerical::spline::Spline

source ·
pub trait Spline<T> {
    // Required method
    fn eval(&self, t: f64) -> T;

    // Provided methods
    fn eval_vec(&self, v: &[f64]) -> Vec<T> { ... }
    fn eval_with_cond<F: Fn(T) -> T>(&self, t: f64, cond: F) -> T { ... }
    fn eval_vec_with_cond<F: Fn(T) -> T + Copy>(
        &self,
        t: &[f64],
        cond: F,
    ) -> Vec<T> { ... }
}

Required Methods§

source

fn eval(&self, t: f64) -> T

Provided Methods§

source

fn eval_vec(&self, v: &[f64]) -> Vec<T>

source

fn eval_with_cond<F: Fn(T) -> T>(&self, t: f64, cond: F) -> T

source

fn eval_vec_with_cond<F: Fn(T) -> T + Copy>(&self, t: &[f64], cond: F) -> Vec<T>

Object Safety§

This trait is not object safe.

Implementors§

source§

impl Spline<(f64, f64)> for BSpline

source§

impl<P: PolynomialSpline> Spline<f64> for P

Trait for spline interpolation

§Available Splines

  • CubicSpline
  • CubicHermiteSpline