BiorthogonalWavelet<T>
Models & Types ยท AiDotNet.WaveletFunctions
Implements biorthogonal wavelets, which offer symmetry and linear phase properties while maintaining perfect reconstruction capabilities.
Inheritance: WaveletFunctionBase<T> โ BiorthogonalWavelet<T>
For Beginners
Biorthogonal wavelets are special mathematical tools that offer more flexibility than standard wavelets.
The key difference is that biorthogonal wavelets use:
- One set of functions to break down (decompose) a signal
- A different but related set of functions to rebuild (reconstruct) it
This approach offers several advantages:
- Perfect reconstruction: The signal can be rebuilt exactly without errors
- Symmetry: The wavelets can be symmetric, which reduces edge artifacts
- Linear phase: Important for preserving the shape of features in the signal
These properties make biorthogonal wavelets particularly useful for:
- Image compression (JPEG2000 uses them)
- Signal denoising where preserving edges is important
- Applications where phase information matters
You can think of biorthogonal wavelets as using two complementary lenses - one for analyzing and one for synthesizing - that work together perfectly.
How It Works
Biorthogonal wavelets use different basis functions for decomposition and reconstruction, allowing them to achieve properties that are impossible with orthogonal wavelets. They are particularly useful in applications where symmetry and linear phase are important, such as image processing.
Example
using AiDotNet.WaveletFunctions;
var wavelet = new BiorthogonalWavelet<double>();
double value = wavelet.Calculate(0.5);
Console.WriteLine($"BiorthogonalWavelet: psi(0.5) = {value:F4}");
Constructors
| Constructor | Summary |
|---|---|
BiorthogonalWavelet(int decompositionOrder, int reconstructionOrder) |
Initializes a new instance of the BiorthogonalWavelet class with the specified decomposition and reconstruction orders. |
Methods
| Method | Summary |
|---|---|
T Calculate(T x) |
Calculates the value of the biorthogonal 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 biorthogonal wavelet. |
Vector<T> GetScalingCoefficients() |
Gets the scaling function coefficients for the biorthogonal wavelet. |
Vector<T> GetWaveletCoefficients() |
Gets the wavelet function coefficients for the biorthogonal wavelet. |
Vector<T> Reconstruct(Vector<T> approximation, Vector<T> detail) |
Reconstructs the original signal from approximation and detail coefficients. |