DaubechiesWavelet<T>
Models & Types · AiDotNet.WaveletFunctions
Implements Daubechies wavelets, which are a family of orthogonal wavelets characterized by a maximal number of vanishing moments for a given support width.
Inheritance: WaveletFunctionBase<T> → DaubechiesWavelet<T>
For Beginners
Daubechies wavelets are like special mathematical magnifying glasses that can analyze signals at different levels of detail. They’re named after Ingrid Daubechies, a mathematician who made groundbreaking contributions to wavelet theory.
Key features of Daubechies wavelets:
- They have compact support (affect only a limited region)
- They can have a specified number of vanishing moments
- They’re orthogonal (no redundancy in the transform)
- They’re asymmetric (unlike some other wavelets)
“Vanishing moments” means the wavelet can ignore certain polynomial trends in the data. For example, a wavelet with 2 vanishing moments will be “blind” to constant and linear trends, allowing it to focus on more complex patterns.
These wavelets are particularly useful for:
- Image compression (JPEG2000 uses them)
- Signal denoising
- Feature extraction
- Data compression
The order parameter (typically denoted as D2, D4, D6, etc., where the number is twice the order) controls how many vanishing moments the wavelet has, with higher orders providing more vanishing moments but wider support.
How It Works
Daubechies wavelets, named after mathematician Ingrid Daubechies, are a family of orthogonal wavelets with compact support and a maximal number of vanishing moments for a given support width. They are widely used in signal processing, image compression, and numerical analysis.
Example
using AiDotNet.WaveletFunctions;
var wavelet = new DaubechiesWavelet<double>();
double value = wavelet.Calculate(0.5);
Console.WriteLine($"DaubechiesWavelet: psi(0.5) = {value:F4}");
Constructors
| Constructor | Summary |
|---|---|
DaubechiesWavelet(int order) |
Initializes a new instance of the DaubechiesWavelet class with the specified order. |
Methods
| Method | Summary |
|---|---|
T Calculate(T x) |
Calculates the value of the Daubechies wavelet function at point x. |
ValueTuple<Vector<T>, Vector<T>> Decompose(Vector<T> input) |
Decomposes an input signal into approximation and detail coefficients using the Daubechies wavelet. |
Vector<T> GetScalingCoefficients() |
Gets the scaling function coefficients for the Daubechies wavelet. |
Vector<T> GetWaveletCoefficients() |
Gets the wavelet function coefficients for the Daubechies wavelet. |
Vector<T> Reconstruct(Vector<T> approximation, Vector<T> detail) |
Reconstructs the original signal from approximation and detail coefficients. |