marytts.util.math
Class ComplexArray

java.lang.Object
  extended by marytts.util.math.ComplexArray

public class ComplexArray
extends java.lang.Object

This is a wrapper class that can hold two double arrays, one of which is interpreted as containing the real values, the other the imaginary values of the complex numbers.

Author:
Marc Schröder

Field Summary
 double[] imag
           
 double[] real
           
 
Constructor Summary
ComplexArray(ComplexArray c)
           
ComplexArray(double[] realVals, double[] imagVals)
           
ComplexArray(int len)
           
 
Method Summary
 ComplexNumber get(int index)
           
 void init(int len)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

real

public double[] real

imag

public double[] imag
Constructor Detail

ComplexArray

public ComplexArray(int len)

ComplexArray

public ComplexArray(double[] realVals,
                    double[] imagVals)

ComplexArray

public ComplexArray(ComplexArray c)
Method Detail

init

public void init(int len)

get

public ComplexNumber get(int index)