ManagedFftOfSingle.ForwardTransform Method

Definition

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

Overload List

ForwardTransform(Vector<T>) 
ForwardTransform(ArraySlice<T>, ArraySlice<Complex<T>>) 
ForwardTransform(Vector<T>, Vector<Complex<T>>) 
ForwardTransform(Vector<T>) Computes the discrete Fourier transform of a real signal and returns the result.
ForwardTransform(ArraySlice<T>, ArraySlice<Complex<T>>) Computes the discrete Fourier transform of a real signal.
ForwardTransform(DenseVector<T>, ComplexConjugateSignalVector<T>) Computes the discrete Fourier transform of a real signal.
ForwardTransform(DenseVector<Complex<T>>, DenseVector<Complex<T>>) Computes the discrete Fourier transform of a complex signal.
ForwardTransform(Vector<T>, Vector<Complex<T>>) Computes the discrete Fourier transform of a real signal.
ForwardTransform(Vector<T>, Vector<Complex<T>>, RealFftFormat) Computes the discrete Fourier transform of a real signal.
ForwardTransform(ReadOnlySpan<Complex<Single>>, Int32, Span<Complex<Single>>, Int32) Computes the discrete Fourier transform of a complex signal.
ForwardTransform(ReadOnlySpan<Single>, Int32, Span<Complex<Single>>, Int32) Computes the discrete Fourier transform of a real signal.

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 inputStride,
	Span<Complex<float>> output,
	int outputStride
)

Parameters

input  ReadOnlySpan<Complex<Single>>
A complex number array containing the input signal.
inputStride  Int32
 
output  Span<Complex<Single>>
A complex number array to hold the transformed signal.
outputStride  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 inputStride,
	Span<Complex<float>> output,
	int outputStride
)

Parameters

input  ReadOnlySpan<Single>
A Double array containing the input signal.
inputStride  Int32
 
output  Span<Complex<Single>>
A complex number array to hold the transformed signal.
outputStride  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. Use the ComplexConjugateSignalVector<T> class to obtain a complex vector that represents the complete signal.

Exceptions

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

-or-

output is null.

See Also