AdaptiveData

see the code AD.cc

Visualize the results in MATLAB by (AWFD/Sources/Examples/ad.m)

`C=ReadUDF('../../Data/Test/C') ;
C1=ReadUDF('../../Data/Test/C1') ;
c=C1.a ;
for i=1:129;for j=1:129; if (c(i,j)==0) c(i,j)=nan ;end;end;end
figure(1); pcolor(log(abs(C.a ))); shading flat;title 'original'
figure(2); pcolor(log(abs(c ))); shading flat;title 'compressed'
A=ReadUDF('../../Data/Test/A') ;
A1=ReadUDF('../../Data/Test/A1') ;
figure(3); surf(A.a) ;shading flat; title 'original'
figure(4); surf(A1.a) ;shading flat; title 'compressed'
`

You should get the following four figures. Figures 1 and 2 show the wavelet coefficients. The white regions in figure 2 correspond to neglected wavelet coefficients. Figures 3 and 4 show the nodal values of the original and the compressed functions. Although significantly less degrees of freedom have been used, you hardly see any difference.