ManagedFft2DOfSingle.ForwardTransform Method

Definition

Namespace: Numerics.NET.SignalProcessing
Assembly: Numerics.NET.SinglePrecision (in Numerics.NET.SinglePrecision.dll) Version: 9.0.1

Overload List

ForwardTransform(ReadOnlySpan<Complex<Single>>, Int32, Span<Complex<Single>>, Int32)

Computes the discrete Fourier transform of a complex signal.
C#
public override void ForwardTransform(
	ReadOnlySpan<Complex<float>> input,
	int inputLeadingDimension,
	Span<Complex<float>> output,
	int outputLeadingDimension
)

Parameters

input  ReadOnlySpan<Complex<Single>>
A complex number array containing the input signal.
inputLeadingDimension  Int32
 
output  Span<Complex<Single>>
A complex number array to hold the transformed signal.
outputLeadingDimension  Int32
 

Exceptions

InvalidOperationExceptionThe Fourier transform implementation is not configured to accept complex input.

-or-

input and output are the same, but the Fourier transform implementation is not configured to handle in-place transforms.

ArgumentNullExceptioninput is null.

-or-

output is null.

ForwardTransform(ReadOnlySpan<Single>, Int32, Span<Complex<Single>>, Int32)

Computes the discrete Fourier transform of a real signal.
C#
public override void ForwardTransform(
	ReadOnlySpan<float> input,
	int inputLeadingDimension,
	Span<Complex<float>> output,
	int outputLeadingDimension
)

Parameters

input  ReadOnlySpan<Single>
A Double array containing the input signal.
inputLeadingDimension  Int32
 
output  Span<Complex<Single>>
A complex number array to hold the transformed signal.
outputLeadingDimension  Int32
 

Remarks

The output is stored in a compact format to take advantage of the symmetry properties of a real Fourier transform. Specifically, output contains only the first n/2+1 terms of the transformed signal.

Exceptions

InvalidOperationExceptionThe Fourier transform implementation is not configured to accept real input.
ArgumentNullExceptioninput is null.

-or-

output is null.

See Also