ManagedFft.ForwardTransform Method

Definition

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

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<Double>>, Int32, Span<Complex<Double>>, Int32) Computes the discrete Fourier transform of a real signal.
ForwardTransform(ReadOnlySpan<Double>, Int32, Span<Complex<Double>>, Int32) Computes the discrete Fourier transform of a real signal.

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

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

Parameters

input  ReadOnlySpan<Complex<Double>>
A real span containing the input signal.
inputStride  Int32
The distance between successive elements in input.
output  Span<Complex<Double>>
A complex span to hold the transformed signal.
outputStride  Int32
The distance between successive elements in output.

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 complex Span<T> class to obtain a complex vector that represents the complete signal.

Exceptions

InvalidOperationException

The Fourier transform implementation is not configured to accept real input.

ArgumentNullException

input is null.

-or-

output is null.

DimensionMismatchException

The length of input does not equal the length of output.

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

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

Parameters

input  ReadOnlySpan<Double>
A real span containing the input signal.
inputStride  Int32
The distance between successive elements in input.
output  Span<Complex<Double>>
A complex span to hold the transformed signal.
outputStride  Int32
The distance between successive elements in output.

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 complex Span<T> class to obtain a complex vector that represents the complete signal.

Exceptions

InvalidOperationException

The Fourier transform implementation is not configured to accept real input.

ArgumentNullException

input is null.

-or-

output is null.

DimensionMismatchException

The length of input does not equal the length of output.

See Also