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.
Modifier and Type | Class and Description |
---|---|
static class |
RadialBasisEx2.PolyHarmonicSpline
RadialBasis Example 2b: Defines a polyharmonic spline radial basis
function.
|
Constructor and Description |
---|
RadialBasisEx2() |
public static void main(String[] args)
Copyright © 2020 Rogue Wave Software. All rights reserved.