polyh fits a polyharmonic spline with radial basis function
x^k for odd k, and x^k log(x) for even k. If
k < 0, the basis exp(k x^2) is used. There are more details in
a vignette.
If 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 normalize
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.