MorletWavelet<T>

Models & Types · AiDotNet.WaveletFunctions

Represents a Morlet wavelet function implementation for time-frequency analysis and signal processing.

Inheritance: WaveletFunctionBase<T> → MorletWavelet<T>

For Beginners

The Morlet wavelet is like a tunable detector for patterns in your data.

Think of the Morlet wavelet like a musical note with an adjustable pitch that:

  • Has a smooth bell-shaped envelope (like a Gaussian curve)
  • Contains oscillations (like a cosine wave) inside this envelope
  • Can be tuned to detect specific frequencies in your data

This wavelet is particularly good at analyzing signals where you need to know both when something happens (time localization) and what frequencies are present (frequency localization). It’s commonly used for analyzing audio, brain waves (EEG), vibrations, and many other types of signals.

How It Works

The Morlet wavelet is a complex wavelet defined as a plane wave modulated by a Gaussian window. It offers excellent time-frequency localization and is widely used in signal processing, geophysics, audio analysis, and various other fields. This implementation supports customization of the central frequency parameter, which affects the balance between time and frequency resolution.

Example

using AiDotNet.WaveletFunctions;

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

Constructors

Constructor Summary
MorletWavelet(double omega) Initializes a new instance of the MorletWavelet class with the specified omega parameter.

Methods

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