Polyharmonic splines on scattered data.
Further arguments to the function, if
array or function. Function values on scattered data, or the function itself.
matrix. Each column is a point in an M-dimensional space.
positive integer or negative numeric. The degree of the polyharmonic spline.
logical, vector or matrix. Should coordinates be normalized?
logical. Avoid warning about fallback to least squares fit.
polyh fits a polyharmonic spline with radial basis function
x^k for odd
x^k log(x) for even
k < 0, the basis
exp(k x^2) is used. There are more details in
val is a function it will be evaluated on the knots.
normalize can be used to change the scaling on the space. Set
normalize=TRUE to do an affine transformation on the knots into the
unit hybercube. The default is to transform if any of the knot-coordinates
are outside the interval [0,1]. You may also specify
as an M x 2 matrix, where the columns a and b are used for
the normalization: x -> a*(x-b).
normalize can be set to a
vector of length 2
c(a, b) if the same normalization should apply in
each dimension. Set
normalize=FALSE if you do not want any scaling.
function(x) defined on the multidimensional space,
approximating the given function.
1 2 3 4 5 6 7 8 9 10 11 12 13
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.