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
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 indexvalue
- the real component, the imaginary is not changed.
setImag
void setImag(int i,
float value)
- Parameters:
i
- the element indexvalue
- the imaginary component, the real is not changed.
length
int length()
- returns the number of elements
- Returns:
- the number of elements in the array