org.das2.math.fft
Class ComplexArray.ComplexArrayDoubleDouble
java.lang.Object
org.das2.math.fft.ComplexArray.ComplexArrayDoubleDouble
- All Implemented Interfaces:
- ComplexArray.Double
- Enclosing class:
- ComplexArray
public static final class ComplexArray.ComplexArrayDoubleDouble
- extends java.lang.Object
- implements ComplexArray.Double
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 double getImag(int i)
- Specified by:
getImag
in interface ComplexArray.Double
- Parameters:
i
-
- Returns:
- the imaginary component of the complex element i.
getReal
public double getReal(int i)
- Specified by:
getReal
in interface ComplexArray.Double
- Parameters:
i
-
- Returns:
- the real component of the complex element i.
setImag
public void setImag(int i,
double value)
- Specified by:
setImag
in interface ComplexArray.Double
- Parameters:
i
- the element indexvalue
- the imaginary component, the real is not changed.
setReal
public void setReal(int i,
double value)
- Specified by:
setReal
in interface ComplexArray.Double
- Parameters:
i
- the element indexvalue
- the real component, the imaginary is not changed.
length
public int length()
- Specified by:
length
in interface ComplexArray.Double
- Returns:
- the number of elements in the array