Example description

nag_2d_spline_fit_grid (e02dcc) Example Program Results

Calling with smoothing factor s =    1.0000e-01: spline.nx = 10, spline.ny = 13.

Distinct knots in x direction located  at
      0.0000       1.5000       2.5000       5.0000

Distinct knots in y direction located  at
      0.0000       1.0000       2.0000       2.5000       3.0000
      3.5000       4.0000

The B-spline coefficients:

   0.9918   1.5381   2.3913   3.9845   5.2138   5.9965
   1.0546   1.5270   2.2441   4.2217   5.0860   6.0821
   0.6098   0.9557   1.5587   2.3458   3.3860   3.7716
  -0.2915  -0.4199  -0.7399  -1.1763  -1.5527  -1.7775
  -0.8476  -1.3296  -1.8521  -3.3468  -4.3628  -5.0085
  -1.0168  -1.5952  -2.4022  -3.9390  -5.4680  -6.1656
  -0.9529  -1.3381  -2.2844  -3.9559  -5.0032  -5.8709
  -0.7711  -1.0914  -1.8488  -3.2549  -3.9444  -4.7297
  -0.6476  -1.0373  -1.5936  -2.5887  -3.3485  -3.9330

Sum of squared residuals fp =    1.0004e-01

Values of computed spline:

          x   0.00     1.00     2.00     3.00     4.00     5.00  
     y
   4.00      -0.65    -1.36    -1.99    -2.61    -3.25    -3.93 
   3.00      -0.98    -1.97    -2.91    -3.91    -4.97    -5.92 
   2.00      -0.42    -0.83    -1.24    -1.66    -2.08    -2.48 
   1.00       0.54     1.09     1.61     2.14     2.71     3.24 
   0.00       0.99     2.04     3.03     4.01     5.02     6.00