Wavelets and distributed approximating functionals