Skip to main content

griddata

Function griddata 

Source
pub fn griddata(
    points: &[[f64; 2]],
    values: &[f64],
    queries: &[[f64; 2]],
    method: GriddataMethod,
) -> Result<Vec<f64>, ErrorsJSL>
Expand description

Interpolates scattered 2-D data at the query points (SciPy’s griddata): nearest neighbour, piecewise linear or Clough-Tocher; outside the convex hull the linear and cubic methods return NaN.