org.das2.math.fft
Class ComplexArray.ComplexArrayFloatFloat

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


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)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

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