omni-wave
Easy to use Discrete Wavelet Transform library, no need to worry about padding, and a variety of wavelets are available.
# use assert_abs_diff_eq;
use ;
use ;
let wave = BIOR_3_1;
let raw = from_shape_vec.unwrap;
let mut signal_2d = raw.clone;
let mut buffer = zeros;
completely_decompose_2d;
completely_reconstruct_2d;
raw.into_iter
.zip
.for_each;
Knowledges
Signal
The data need to transform. The length should be even. Failure to meet the length requirement may not result a panic, but the behavior of functions will be undefined.
The left half of the input will be considered as Approx, while the right half will be considered as Detail.
Padding
Our filling method named periodic (in PyWavelets),
ppd (in Matlab) or wrap (in numpy.pad).
[ A.B.C.D.E.F.G.H ] a.b.c.d ...
↑^^^^^^^^^^^^^^ ↑^^^^^^
Original signal Padding: automatically fill & detach!
Window
The number of wavelet coefficients.