## org.das2.qds.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.qds.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

magnitude( org.das2.qds.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]

## magnitude2

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

returns the magnitude of an element in an array.

### Parameters

array - the complex array.
i - the element index

### Returns:

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

## newArray

newArray( double[] real ) → org.das2.qds.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.qds.math.fft.ComplexArray.Double
[search for examples] [view on GitHub] [view on old javadoc] [view source]

## newArray

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

Creates a new ComplexArray from an array representing real numbers and an array representing the corresponding complex components.

### Parameters

real - a double[]
imag - a double[]

### Returns:

org.das2.qds.math.fft.ComplexArray.Double
[search for examples] [view on GitHub] [view on old javadoc] [view source]

## newArray

newArray( float[] real ) → org.das2.qds.math.fft.ComplexArray.Float

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 float[]

### Returns:

org.das2.qds.math.fft.ComplexArray.Float
[search for examples] [view on GitHub] [view on old javadoc] [view source]

## newArray

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

Creates a new ComplexArray from an array representing real numbers and an array representing the corresponding complex components.

### Parameters

real - a float[]
imag - a float[]

### Returns:

org.das2.qds.math.fft.ComplexArray.Float
[search for examples] [view on GitHub] [view on old javadoc] [view source]

## newArrayCopy

newArrayCopy( double[] real ) → org.das2.qds.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.qds.math.fft.ComplexArray.Double
[search for examples] [view on GitHub] [view on old javadoc] [view source]

## realPart

realPart( org.das2.qds.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.qds.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

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

converts a ComplexArray into an array for debugging purposes.

### Parameters

array - a ComplexArray.Double

### Returns:

java.lang.String
[search for examples] [view on GitHub] [view on old javadoc] [view source]