Window Functions.Triangular Method
Definition
Namespace: Numerics.NET.SignalProcessing
Assembly: Numerics.NET (in Numerics.NET.dll) Version: 10.0.0
Assembly: Numerics.NET (in Numerics.NET.dll) Version: 10.0.0
Overload List
| Triangular( | Returns a triangular window function of the specified length. |
| Triangular<T>(Int32, WindowSampling) | Returns a triangular window function of the specified length. |
Triangular(Int32, WindowSampling)
Returns a triangular window function of the specified length.
public static WindowFunction Triangular(
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
WindowFunctionA WindowFunction object that represents a triangular window of length 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
| Argument | length is less than or equal to zero. |
Triangular<T>(Int32, WindowSampling)
Returns a triangular window function of the specified length.
public static WindowFunction<T> Triangular<T>(
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.
Type Parameters
- T
Return Value
WindowFunction<T>A WindowFunction<T> object that represents a triangular window of length 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
| Argument | length is less than or equal to zero. |