Class RadialBasisEx2

java.lang.Object
com.imsl.test.example.math.RadialBasisEx2

public class RadialBasisEx2 extends Object

Approximates a function with a polyharmonic spline radial basis function.

Data is generated from the function $$e^\frac{y}{2.0}\sin{x}\cos\frac{y}{2.0}$$ where a number of (x,y) pairs make up a set of randomly chosen points. Random noise is added to the values. A "custom" polyharmonic spline radial basis function is specified in the class, RadialBasisEx2.PolyHarmonicSpline. A radial basis approximation of the noisy data is computed and the radial basis fit is then compared to the original function at another set of randomly chosen points. Both the average normalized error and the maximum normalized error are computed and printed.

In this example, the order of the Polyharmonic Spline, k=2. The function is sampled at 200 random points and the error is computed at 10000 random points.

See Also:
  • Constructor Details

    • RadialBasisEx2

      public RadialBasisEx2()
  • Method Details

    • main

      public static void main(String[] args)