org.das2.math.fft
Class ComplexArray.ComplexArrayDoubleDouble

java.lang.Object
  extended by 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.


Method Summary
 double getImag(int i)
           
 double getReal(int i)
           
 int length()
           
 void setImag(int i, double value)
           
 void setReal(int i, double value)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

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 index
value - 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 index
value - 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