Representation of functions by wavelets