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.Function
      A radial basis function.
      Specified by:
      f in interface RadialBasis.Function
      Parameters:
      x - a double, 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.Function
      The derivative of the radial basis function used to calculate the gradient of the radial basis approximation.
      Specified by:
      g in interface RadialBasis.Function
      Parameters:
      x - a double, 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()