public class Spline2DLeastSquaresEx1 extends Object
Computes a tensor-product cubic spline least squares fit to a function.
The data for this example comes from the function \(e^x sin(x + y)\) on the rectangle \([0, 3] \times [0, 5]\). This function is first sampled on a \(50 \times 25\) grid. Next, an attempt to recover it by using tensor-product cubic splines is performed. The values of the function \(e^x sin(x + y)\) are printed on a \(2 \times 2\) grid and compared with the values of the tensor-product spline least-squares fit.Constructor and Description |
---|
Spline2DLeastSquaresEx1() |
public static void main(String[] args)
Copyright © 2020 Rogue Wave Software. All rights reserved.