public class RadialBasisEx3 extends Object
Approximates a function using a Hardy multiquadric 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 Hardy multiquadric radial basis function is specified \(\sqrt{r^2+\delta^2}\) 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 Hardy multiquadric radial basis function \(\delta = 5.5\). The function is sampled at 100 random points and the error is computed at 10000 random points.
Constructor and Description |
---|
RadialBasisEx3() |
public static void main(String[] args)
Copyright © 2020 Rogue Wave Software. All rights reserved.