SignalMath.ApplyGaussianWindow Method

Definition

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

Overload List

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

ApplyGaussianWindow<T>(Vector<T>, Vector<T>, T)

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

Parameters

values  Vector<T>
The input vector.
result  Vector<T>
The output vector to hold windowed values.
sigma  T
The Gaussian window sigma parameter.

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.

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

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

Parameters

values  Vector<Complex<T>>
The input vector.
result  Vector<Complex<T>>
The output vector to hold windowed values.
sigma  T
The Gaussian window sigma parameter.

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.

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

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

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.
sigma  T
The Gaussian window sigma parameter (standard deviation).

Type Parameters

T
The element type (double or float).

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

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

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.
sigma  T
The Gaussian window sigma parameter (standard deviation).

Type Parameters

T
The element type (double or float).

See Also