WindowFunction Constructor

Constructs a new window function.

Definition

Namespace: Numerics.NET.SignalProcessing
Assembly: Numerics.NET (in Numerics.NET.dll) Version: 9.0.0
C#
public WindowFunction(
	int length,
	Func<int, double> coefficientFunction,
	WindowSampling sampling
)

Parameters

length  Int32
The length of the window.
coefficientFunction  Func<Int32, Double>
A delegate that represents a function of one variable that returns the value of each component of the window.
sampling  WindowSampling
A WindowSampling value that indicates whether the filter is symmetrical or periodic.

Exceptions

ArgumentOutOfRangeException

length is less than or equal to zero.

ArgumentNullException

coefficientFunction is null.

See Also