Class RadialBasisEx4

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

public class RadialBasisEx4 extends Object

Approximates a function with a Gaussian radial basis function.

Data is generated from the function $$\exp(\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 Gaussian radial basis function \(e^{-ax^2}\) is specified, and a radial basis approximation of the noisy data is computed. 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 parameter of the Gaussian radial basis function \(a = 0.1\). The function is sampled at \(100\) random points and the error is computed at \)10000\) random points.

See Also:
  • Constructor Details

    • RadialBasisEx4

      public RadialBasisEx4()
  • Method Details

    • main

      public static void main(String[] args)