// We have m-value data that we want to interpolate interfaceTempData { temp: number; }
constpointIndex = newPointIndexFast<TempData>(); // add lots of points pointIndex.insertLonLat(lon, lat, data); // ....
// given a point we are interested in constpoint: VectorPoint = { x:20, y: -40 }; // get a collection of points relative to the point constdata = awaitpointIndex.searchRadius(point.x, point.y, radius);
function to get value from reference data. Can be the z value or a property in the m-values
defaults to function that returns the z value or 0 if the z value is undefined
Inverse Distance Weighting Interpolation
Description
Given a reference of data, interpolate a point using inverse distance weighting
Usage