Functional Learning with Wavelets