Function File: [yi] = tps_val(x, coefs, xi, vectorize=true)

Evaluates a thin plate spline at given points
xi

coefs should be the vector of fitted coefficients returned from tpaps(x, y, [p])

x should be n by d in size, where n is the number of points and d the number of dimensions; coefs should be n + d + 1 by 1; xi should be k by d

The logical argument vectorize controls whether an k by n by d intermediate array is formed to speed up computation (the default) or whether looping is used to economize on memory

The returned yi will be k by 1

See the documentation to tpaps for more information

See also: tpaps, tps_val_der.

Package: splines