Struct rgsl::types::interpolation::Interp
source · pub struct Interp { /* private fields */ }
Implementations§
source§impl Interp
impl Interp
sourcepub fn new(t: &InterpType, size: usize) -> Option<Interp>
pub fn new(t: &InterpType, size: usize) -> Option<Interp>
This function returns a pointer to a newly allocated interpolation object of type T for size data-points.
sourcepub fn init(&self, xa: &[f64], ya: &[f64]) -> Value
pub fn init(&self, xa: &[f64], ya: &[f64]) -> Value
This function initializes the interpolation object interp for the data (xa,ya) where xa and ya are arrays of size size. The interpolation object (gsl_interp) does not save the data arrays xa and ya and only stores the static state computed from the data. The xa data array is always assumed to be strictly ordered, with increasing x values; the behavior for other arrangements is not defined.