1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24
pub mod kernels; pub mod lagrangian; pub mod linear; pub mod linear_algebra; pub mod normalisation; pub mod numeric; pub mod rbf; pub mod utilities; /// Can interpolate /// /// Supported `X`, `Y` combinations currently: /// Rbf: `X` can be: Vec<f64>, [f64;3], f64 /// `Y` can be: Vec<f64>, [f64;3], f64 pub trait Interpolator<X, Y> { /// Predict the output `y_new` given points `x_new`. /// /// # Arguments /// * `x_new`: New input data points to predict the output values for. /// /// # Returns /// A `Result` containing output values if the computation is successful. fn predict(&self, x_new: &[X]) -> Result<Vec<Y>, String>; }