org.das2.math.fft
Class ComplexArray.ComplexArrayFloatFloat
java.lang.Object
org.das2.math.fft.ComplexArray.ComplexArrayFloatFloat
- All Implemented Interfaces:
- ComplexArray.Float
- Enclosing class:
- ComplexArray
public static final class ComplexArray.ComplexArrayFloatFloat
- extends java.lang.Object
- implements ComplexArray.Float
Implements ComplexArray that is backed by two float arrays.
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
getImag
public float getImag(int i)
- Specified by:
getImag in interface ComplexArray.Float
- Returns:
- the imaginary component of the complex element i.
getReal
public float getReal(int i)
- Specified by:
getReal in interface ComplexArray.Float
- Returns:
- the real component of the complex element i.
setImag
public void setImag(int i,
float value)
- Specified by:
setImag in interface ComplexArray.Float
- Parameters:
i - the element indexvalue - the imaginary component, the real is not changed.
setReal
public void setReal(int i,
float value)
- Specified by:
setReal in interface ComplexArray.Float
- Parameters:
i - the element indexvalue - the real component, the imaginary is not changed.
length
public int length()
- Description copied from interface:
ComplexArray.Float
- returns the number of elements
- Specified by:
length in interface ComplexArray.Float
- Returns:
- the number of elements in the array