Skip to main content

LinInterp1D

Function LinInterp1D 

Source
pub unsafe extern "C" fn LinInterp1D(
    arr: *mut f32,
    index: f64,
    nelem: c_long,
) -> f32
Expand description

Given an array of floats, interpolates at the specified noninteger index. Returns first or last array value if index is out of bounds.