WindowFunctions.Cosine Method

Definition

Namespace: Extreme.Mathematics.SignalProcessing
Assembly: Extreme.Numerics (in Extreme.Numerics.dll) Version: 8.1.23

Overload List

Cosine(Int32) Returns a Cosine window of the specified length .
Cosine(Int32, WindowSampling) Returns a Cosine window of the specified length and symmetry.

Cosine(Int32)

Returns a Cosine window of the specified length .
C#
public static WindowFunction Cosine(
	int length
)

Parameters

length  Int32
The length of the window.

Return Value

WindowFunction
A WindowFunction that represents a Cosine window with a length of length, normalized so the largest value is 1.

Exceptions

ArgumentOutOfRangeExceptionlength is less than or equal to zero.

Cosine(Int32, WindowSampling)

Returns a Cosine window of the specified length and symmetry.
C#
public static WindowFunction Cosine(
	int length,
	WindowSampling sampling
)

Parameters

length  Int32
The length of the window.
sampling  WindowSampling
A WindowSampling value that indicates whether the filter is symmetrical or periodic.

Return Value

WindowFunction
A WindowFunction that represents a Cosine window with a length of length, normalized so the largest value is 1.

Remarks

If the window is symmetrical and the length is even, the maximum value of 1 may not appear.

Exceptions

ArgumentOutOfRangeExceptionlength is less than or equal to zero.

See Also