Find the nearest neighbor for a set of data points
nn(p, y, q)
p | matrix of variable values, each row is a data point |
---|---|
y | vector of values, each entry corresponds to one row in |
q | vector of variable values, each entry corresponds to one column of |
an interpolated value for q
nn
finds the n-dimensional nearest neighbor for given datapoint
Other interp:
bezier
,
bilinear()
,
cubicspline()
,
linterp()
,
polyinterp()
,
pwiselinterp()