PoissonWindow<T>
Models & Types · AiDotNet.WindowFunctions
Implements the Poisson window function for signal processing applications.
Implements: IWindowFunction<T>
For Beginners
A window function is like a special filter that helps analyze signals more accurately.
The Poisson window:
- Creates a curve that decays exponentially from the center to the edges
- Has a shape that can be adjusted using the alpha parameter
- Provides a smooth transition that helps reduce artifacts in frequency analysis
Think of the Poisson window like a spotlight that gradually fades out from the center. The alpha parameter controls how quickly this fading happens - a higher alpha means a faster fade out from the center. This gradual fading helps when analyzing signals by reducing the artificial effects that occur when you’re only looking at a segment of a longer signal.
How It Works
The Poisson window is an exponential window function defined by the equation: w(n) = exp(-alpha * |n - (N-1)/2| / ((N-1)/2)) where n is the sample index, N is the window size, and alpha is a parameter (scipy.signal.windows.exponential with tau = ((N-1)/2) / alpha) that controls the rate of decay from the center of the window to the edges.
Example
using AiDotNet.WindowFunctions;
using AiDotNet.Tensors.LinearAlgebra;
var window = new PoissonWindow<double>();
Vector<double> w = window.Create(16);
Console.WriteLine($"PoissonWindow: {w.Length}-point window, center = {w[w.Length / 2]:F4}");
Constructors
| Constructor | Summary |
|---|---|
PoissonWindow(double alpha) |
Initializes a new instance of the PoissonWindow class with the specified alpha value. |
Methods
| Method | Summary |
|---|---|
Vector<T> Create(int windowSize) |
Creates a Poisson window of the specified size. |
WindowFunctionType GetWindowFunctionType() |
Gets the type identifier for this window function. |