CoifletWavelet<T>
Models & Types · AiDotNet.WaveletFunctions
Implements Coiflet wavelets, which are compactly supported wavelets with a high number of vanishing moments for both the wavelet and scaling functions.
Inheritance: WaveletFunctionBase<T> → CoifletWavelet<T>
For Beginners
Coiflet wavelets are special mathematical tools designed to analyze signals with particular properties.
Key features of Coiflet wavelets:
- They’re nearly symmetric (more symmetric than Daubechies wavelets)
- They have vanishing moments for both the wavelet and scaling functions
- They have compact support (affect only a limited region)
“Vanishing moments” means the wavelet can ignore certain polynomial trends in the data. For example, a wavelet with 3 vanishing moments will be “blind” to constant, linear, and quadratic trends, allowing it to focus on more complex patterns.
These properties make Coiflet wavelets particularly useful for:
- Signal compression
- Feature extraction
- Numerical analysis
- Applications where symmetry is important
The order parameter (1-5) controls how many vanishing moments the wavelet has, with higher orders providing more vanishing moments but wider support.
How It Works
Coiflet wavelets were designed by Ingrid Daubechies at the request of Ronald Coifman. They are distinguished by having vanishing moments for both the wavelet and scaling functions, which makes them more symmetric than Daubechies wavelets and better suited for certain applications.
Example
using AiDotNet.WaveletFunctions;
var wavelet = new CoifletWavelet<double>();
double value = wavelet.Calculate(0.5);
Console.WriteLine($"CoifletWavelet: psi(0.5) = {value:F4}");
Constructors
| Constructor | Summary |
|---|---|
CoifletWavelet(int order) |
Initializes a new instance of the CoifletWavelet class with the specified order. |
Methods
| Method | Summary |
|---|---|
T Calculate(T x) |
Calculates the value of the Coiflet 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 Coiflet wavelet. |
Vector<T> GetScalingCoefficients() |
Gets the scaling function coefficients for the Coiflet wavelet. |
Vector<T> GetWaveletCoefficients() |
Gets the wavelet function coefficients for the Coiflet wavelet. |
Vector<T> Reconstruct(Vector<T> approximation, Vector<T> detail) |
Reconstructs the original signal from approximation and detail coefficients. |