GaussianWavelet<T>
Models & Types · AiDotNet.WaveletFunctions
Represents a Gaussian wavelet function implementation for signal processing and analysis.
Inheritance: WaveletFunctionBase<T> → GaussianWavelet<T>
For Beginners
A Gaussian wavelet is a smooth bell-shaped curve that helps analyze data.
Think of the Gaussian wavelet like a special magnifying glass that:
- Can detect smooth transitions and gradual changes in your data
- Has a perfect balance between time and frequency precision
- Resembles the familiar “bell curve” shape used in statistics
This type of wavelet is especially good at finding gradual changes and smooth features in signals like audio recordings, temperature measurements, or image brightness variations. It’s named after Carl Friedrich Gauss, a mathematician who first described the bell-shaped curve that forms the foundation of this wavelet.
How It Works
The Gaussian wavelet is based on the Gaussian function and its derivatives. It provides excellent localization in both time and frequency domains, making it useful for detecting smooth changes and transitions in signals. This implementation uses the Gaussian function for approximation coefficients and its first derivative for detail coefficients.
Example
using AiDotNet.WaveletFunctions;
var wavelet = new GaussianWavelet<double>();
double value = wavelet.Calculate(0.5);
Console.WriteLine($"GaussianWavelet: psi(0.5) = {value:F4}");
Constructors
| Constructor | Summary |
|---|---|
GaussianWavelet(double sigma) |
Initializes a new instance of the GaussianWavelet class with the specified sigma. |
Methods
| Method | Summary |
|---|---|
T Calculate(T x) |
Evaluates Calculate at every entry of x. |
Tensor<T> Calculate(Tensor<T> x) |
Evaluates Calculate at every entry of x. |
ValueTuple<Vector<T>, Vector<T>> Decompose(Vector<T> input) |
Decomposes an input signal using the Gaussian wavelet and its derivative. |
Vector<T> GetScalingCoefficients() |
Gets the scaling coefficients (Gaussian function) used in the wavelet transform. |
Vector<T> GetWaveletCoefficients() |
Gets the wavelet coefficients (derivative of Gaussian function) used in the wavelet transform. |
Vector<T> Reconstruct(Vector<T> approximation, Vector<T> detail) |
Reconstructs the original signal from approximation and detail coefficients. |