pub fn dwt( x: &[f64], wavelet: Wavelet, ) -> Result<(Vec<f64>, Vec<f64>), ErrorsJSL>
One level of the DWT: returns (approximation, detail), each half the input length.
(approximation, detail)