public static class RadialBasisEx2.PolyHarmonicSpline extends Object implements RadialBasis.Function
RadialBasis Example 2b: Defines a polyharmonic spline radial basis function.
The "custom" polyharmonic spline radial basis function is specified $$\varphi(r)=\left\{ \begin{array}{ll}r^{k}&k=1,3,5,\ldots\\r^{k}\ln{r}&k=2,4,6,\ldots\end{array} \right.$$| Constructor and Description |
|---|
PolyHarmonicSpline(int order) |
| Modifier and Type | Method and Description |
|---|---|
double |
f(double x)
A radial basis function.
|
double |
g(double x)
The derivative of the radial basis function used to calculate the
gradient of the radial basis approximation. |
int |
getOrder() |
boolean |
isEvenOrder() |
public double f(double x)
RadialBasis.Functionf in interface RadialBasis.Functionx - a double, the point at which the function
is to be evaluateddouble, the value of the function at xpublic double g(double x)
RadialBasis.Functiongradient of the radial basis approximation.g in interface RadialBasis.Functionx - a double, the point at which the function
is to be evaluateddouble, the value of the function at xpublic int getOrder()
public boolean isEvenOrder()
Copyright © 2020 Rogue Wave Software. All rights reserved.