Package com.imsl.test.example.math
Class RadialBasisEx2.PolyHarmonicSpline
java.lang.Object
com.imsl.test.example.math.RadialBasisEx2.PolyHarmonicSpline
- All Implemented Interfaces:
RadialBasis.Function
- Enclosing class:
- RadialBasisEx2
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 Details
-
PolyHarmonicSpline
public PolyHarmonicSpline(int order)
-
-
Method Details
-
f
public double f(double x) Description copied from interface:RadialBasis.FunctionA radial basis function.- Specified by:
fin interfaceRadialBasis.Function- Parameters:
x- adouble, the point at which the function is to be evaluated- Returns:
- a
double, the value of the function at x
-
g
public double g(double x) Description copied from interface:RadialBasis.FunctionThe derivative of the radial basis function used to calculate thegradientof the radial basis approximation.- Specified by:
gin interfaceRadialBasis.Function- Parameters:
x- adouble, the point at which the function is to be evaluated- Returns:
- a
double, the value of the function at x
-
getOrder
public int getOrder() -
isEvenOrder
public boolean isEvenOrder()
-