devela/num/wave/
shared.rs

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
// devela::num::wave::shared

/// Distinguishes the role of a component in wavelet analysis.
#[derive(Clone, Copy, Debug, PartialEq, Eq, Hash)]
pub enum WaveletUnitRole {
    /// Represents the base approximation in the wavelet transform,
    /// capturing the coarser features of the data.
    Scaling,
    /// Represents the detail component in the wavelet transform,
    /// capturing finer variations in the data.
    Wavelet,
}

/// A Haar wavelet is a simple, piecewise-constant wavelet.
///
/// It is ideal for basic signal decomposition and testing.
///
/// - <https://en.wikipedia.org/wiki/Haar_wavelet>.
pub struct WaveletHaar;