org.das2.math.fft
Interface ComplexArray.Float

All Known Implementing Classes:
ComplexArray.ComplexArrayFloatFloat
Enclosing class:
ComplexArray

public static interface ComplexArray.Float

A complex array that is accessed by floats


Method Summary
 float getImag(int i)
           
 float getReal(int i)
           
 int length()
          returns the number of elements
 void setImag(int i, float value)
           
 void setReal(int i, float value)
           
 

Method Detail

getReal

float getReal(int i)
Parameters:
i -
Returns:
the real component of the complex element i.

getImag

float getImag(int i)
Parameters:
i -
Returns:
the imaginary component of the complex element i.

setReal

void setReal(int i,
             float value)
Parameters:
i - the element index
value - the real component, the imaginary is not changed.

setImag

void setImag(int i,
             float value)
Parameters:
i - the element index
value - the imaginary component, the real is not changed.

length

int length()
returns the number of elements

Returns:
the number of elements in the array