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.

ComplexArray( )


magnitude

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

returns the magnitudes of each element in an array

Parameters

array - a ComplexArray.Double

Returns:

double[]

[search for examples] [view on GitHub] [view on old javadoc] [view source]

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

magnitude2

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

returns the magnitude of ah element in an array

Parameters

array - a ComplexArray.Double
i - an int

Returns:

double

[search for examples] [view on GitHub] [view on old javadoc] [view source]


newArray

newArray( double[] real ) → org.das2.math.fft.ComplexArray.Double

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

Parameters

real - a double[]

Returns:

org.das2.math.fft.ComplexArray.Double

[search for examples] [view on GitHub] [view on old javadoc] [view source]

newArray( double[] real, double[] imag ) → org.das2.math.fft.ComplexArray.Double
newArray( float[] real ) → org.das2.math.fft.ComplexArray.Float
newArray( float[] real, float[] imag ) → org.das2.math.fft.ComplexArray.Float

newArrayCopy

newArrayCopy( double[] real ) → org.das2.math.fft.ComplexArray.Double

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

Parameters

real - a double[]

Returns:

org.das2.math.fft.ComplexArray.Double

[search for examples] [view on GitHub] [view on old javadoc] [view source]


realPart

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

returns the real parts of each element in an array.

Parameters

array - a ComplexArray.Double

Returns:

double[]

[search for examples] [view on GitHub] [view on old javadoc] [view source]


toString

toString( org.das2.math.fft.ComplexArray.Float array ) → String

converts a ComplexArray into an array for debugging purposes.

Parameters

array - a ComplexArray.Float

Returns:

java.lang.String

[search for examples] [view on GitHub] [view on old javadoc] [view source]

toString( org.das2.math.fft.ComplexArray.Double array ) → String