SignalMath.ApplyBartlettWindow Method

Definition

Namespace: Numerics.NET
Assembly: Numerics.NET (in Numerics.NET.dll) Version: 10.0.0

Overload List

ApplyBartlettWindow<T>(Vector<T>, Vector<T>) Applies a Bartlett window to a real-valued vector.
ApplyBartlettWindow<T>(Vector<Complex<T>>, Vector<Complex<T>>) Applies a Bartlett window to a complex-valued vector.
ApplyBartlettWindow<T>(ReadOnlySpan<T>, Int32, Span<T>, Int32) Applies a Bartlett window to real values.
ApplyBartlettWindow<T>(ReadOnlySpan<Complex<T>>, Int32, Span<Complex<T>>, Int32) Applies a Bartlett window to complex values.

ApplyBartlettWindow<T>(Vector<T>, Vector<T>)

Applies a Bartlett window to a real-valued vector.
C#
public static void ApplyBartlettWindow<T>(
	Vector<T> values,
	Vector<T> result
)

Parameters

values  Vector<T>
The input vector.
result  Vector<T>
The output vector to hold windowed values.

Type Parameters

T
The element type (double or float).

Exceptions

ArgumentNullExceptionThrown when values or result is null.
ArgumentExceptionThrown when the vector lengths do not match.

ApplyBartlettWindow<T>(Vector<Complex<T>>, Vector<Complex<T>>)

Applies a Bartlett window to a complex-valued vector.
C#
public static void ApplyBartlettWindow<T>(
	Vector<Complex<T>> values,
	Vector<Complex<T>> result
)

Parameters

values  Vector<Complex<T>>
The input vector.
result  Vector<Complex<T>>
The output vector to hold windowed values.

Type Parameters

T
The element type (double or float).

Exceptions

ArgumentNullExceptionThrown when values or result is null.
ArgumentExceptionThrown when the vector lengths do not match.

ApplyBartlettWindow<T>(ReadOnlySpan<T>, Int32, Span<T>, Int32)

Applies a Bartlett window to real values.
C#
public static void ApplyBartlettWindow<T>(
	ReadOnlySpan<T> values,
	int valuesStride,
	Span<T> result,
	int resultStride
)

Parameters

values  ReadOnlySpan<T>
The span of input values.
valuesStride  Int32
The stride between successive elements in values.
result  Span<T>
The span to hold the windowed values.
resultStride  Int32
The stride between successive elements in result.

Type Parameters

T
The element type (double or float).

ApplyBartlettWindow<T>(ReadOnlySpan<Complex<T>>, Int32, Span<Complex<T>>, Int32)

Applies a Bartlett window to complex values.
C#
public static void ApplyBartlettWindow<T>(
	ReadOnlySpan<Complex<T>> values,
	int valuesStride,
	Span<Complex<T>> result,
	int resultStride
)

Parameters

values  ReadOnlySpan<Complex<T>>
The span of input complex values.
valuesStride  Int32
The stride between successive elements in values.
result  Span<Complex<T>>
The span to hold the windowed complex values.
resultStride  Int32
The stride between successive elements in result.

Type Parameters

T
The element type (double or float).

See Also