 Usage:  {a, b, xs} = wavesmo (x, l, h, s, tt)  
 
 Input:

  x                      n x 1 array (n has to be a power of 2), input data, 
                         observed at an equispaced grid 
                         
  l                      p x 1 array, giving the number of father wavelets 
                         
  h                      q x 1 array, wavelet basis coefficients 
                         
  s                      r x 1 array, binwidth 
                         
  tt                     scalar, 0=hard, 1=soft thresholding 
                         
 Output:

  a                      l x 1 array, father wavelet coefficients 
                         
  b                      n-l x 1 array, mother wavelet coefficients 
                         
  xs                     n x 1 array, smoothed estimate of x 
                         
--------------------------------------------------------------
(C) MD*TECH Method and Data Technologies, 17.8.2000
