MeyerWavelet<T>

Models & Types · AiDotNet.WaveletFunctions

Represents a Meyer wavelet function implementation for frequency domain analysis and signal processing.

Inheritance: WaveletFunctionBase<T> → MeyerWavelet<T>

For Beginners

The Meyer wavelet is a special mathematical tool for analyzing signals in the frequency domain.

Think of the Meyer wavelet like a musical tuning fork that:

  • Works especially well for analyzing what frequencies are present in your data
  • Has very clean frequency separation (it doesn’t mix up different frequencies)
  • Is infinitely smooth, which makes it good for analyzing continuous signals

Unlike other wavelets that work directly with your data points (time domain), the Meyer wavelet works with the frequencies in your data (frequency domain). This is like looking at a piece of music as a collection of different notes played simultaneously, rather than as sounds that change over time.

How It Works

The Meyer wavelet is a frequency domain wavelet that is infinitely differentiable with compact support in the frequency domain. Unlike many other wavelets that are defined primarily in the time domain, the Meyer wavelet is more naturally defined in the frequency domain, making it particularly useful for spectral analysis. This implementation uses Fast Fourier Transform (FFT) for efficient computation.

Example

using AiDotNet.WaveletFunctions;

var wavelet = new MeyerWavelet<double>();
double value = wavelet.Calculate(0.5);
Console.WriteLine($"MeyerWavelet: psi(0.5) = {value:F4}");

Constructors

Constructor Summary
MeyerWavelet() Initializes a new instance of the MeyerWavelet class.

Methods

Method Summary
T Calculate(T x) Calculates the Meyer wavelet function value at the specified point.
ValueTuple<Vector<T>, Vector<T>> Decompose(Vector<T> input) Decomposes an input signal using the Meyer wavelet transform.
Vector<T> GetScalingCoefficients() Gets the scaling coefficients (low-pass filter) used in the Meyer wavelet transform.
Vector<T> GetWaveletCoefficients() Gets the wavelet coefficients (high-pass filter) used in the Meyer wavelet transform.
Vector<T> Reconstruct(Vector<T> approximation, Vector<T> detail) Reconstructs the original signal from approximation and detail coefficients.