pub fn scalogram<T>( signal: &[T], config: &TFConfig, sample_rate: Option<f64>, ) -> FFTResult<(Vec<f64>, Vec<f64>, Array2<f64>)>where T: NumCast + Copy + Debug,
Calculate the scalogram (magnitude squared of CWT)