NAG Library Manual, Mark 28.7
Interfaces:  FL   CL   CPP   AD 

NAG FL Interface Introduction
Example description

 C09EZF Example Program Results

  MLDWT :: Wavelet  : DB6       
           End mode : Period    
           M        :    7
           N        :    6

  Original data            A  : 
  0.0100   0.0100   0.0100   0.0100   0.0100   0.0100
  1.0000   1.0000   1.0000   1.0000   1.0000   1.0000
  0.0100   0.0100   0.0100   0.0100   0.0100   0.0100
  1.0000   1.0000   1.0000   1.0000   1.0000   1.0000
  0.0100   0.0100   0.0100   0.0100   0.0100   0.0100
  1.0000   1.0000   1.0000   1.0000   1.0000   1.0000
  0.0100   0.0100   0.0100   0.0100   0.0100   0.0100

  Original data plus noise AN : 
  0.0135   0.0170  -0.0049  -0.0009   0.0002   0.0123
  1.0015   0.9896   0.9983   1.0044   1.0097   0.9847
 -0.0017   0.0107   0.0194  -0.0084   0.0114  -0.0006
  0.9899   1.0038   1.0005   0.9921   0.9923   0.9982
 -0.0093   0.0149   0.0094   0.0160   0.0058   0.0257
  0.9842   1.0278   0.9991   0.9956   1.0113   0.9911
  0.0139  -0.0011   0.0180   0.0187   0.0106   0.0118

  Without denoising Mean Square Error is  0.000098

  Number of coefficients denoised is  32 out of  48

  With denoising Mean Square Error is  0.000018

  Reconstruction of denoised input D : 
  0.0127   0.0094   0.0030   0.0007   0.0009   0.0065
  0.9913   0.9940   1.0000   1.0027   1.0032   0.9976
  0.0084   0.0086   0.0072   0.0048   0.0028   0.0050
  1.0009   0.9998   0.9966   0.9942   0.9930   0.9965
  0.0061   0.0070   0.0103   0.0134   0.0154   0.0114
  1.0034   1.0036   1.0028   1.0011   0.9996   1.0011
  0.0135   0.0113   0.0093   0.0114   0.0147   0.0148