org.das2.math.fft.ComplexArray

Interface for passing complex arrays to and from FFT routines. The intent is that the complex array can be backed by data in any format. Each elements is readable and writeable via get and set methods for the real and imaginary components.


magnitude

magnitude( org.das2.math.fft.ComplexArray.Double array ) → double

returns the magnitudes of each element in an array

Returns:

double[]

search for examples view on GitHub view source


magnitude2

magnitude2( org.das2.math.fft.ComplexArray.Double array, int i ) → double

returns the magnitude of ah element in an array

Returns:

double

search for examples view on GitHub view source


newArray

newArray( double[] real ) → Double

Creates a new ComplexArray from an array of real numbers. The complex components of each element in the resulting array is zero.

Returns:

org.das2.math.fft.ComplexArray.Double

search for examples view on GitHub view source


newArrayCopy

newArrayCopy( double[] real ) → Double

Creates a new ComplexArray from a float array representing real numbers, but copies the original array so that it is not modified.

Returns:

org.das2.math.fft.ComplexArray.Double

search for examples view on GitHub view source


realPart

realPart( org.das2.math.fft.ComplexArray.Double array ) → double

returns the real parts of each element in an array.

Returns:

double[]

search for examples view on GitHub view source