Rewritten functions 'scalingfromwavelet' and 'waveletfromscalint'.