org.ejml.data
Class Complex64F

java.lang.Object
  extended by org.ejml.data.Complex64F
All Implemented Interfaces:
Serializable

public class Complex64F
extends Object
implements Serializable

Represents a complex number using 64bit floating point numbers. A complex number is composed of a real and imaginary components.

See Also:
Serialized Form

Field Summary
 double imaginary
           
 double real
           
 
Constructor Summary
Complex64F()
           
Complex64F(double real, double imaginary)
           
 
Method Summary
 double getImaginary()
           
 double getMagnitude()
           
 double getMagnitude2()
           
 double getReal()
           
 boolean isReal()
           
 void set(double real, double imaginary)
           
 void setImaginary(double imaginary)
           
 void setReal(double real)
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

real

public double real

imaginary

public double imaginary
Constructor Detail

Complex64F

public Complex64F(double real,
                  double imaginary)

Complex64F

public Complex64F()
Method Detail

getReal

public double getReal()

getMagnitude

public double getMagnitude()

getMagnitude2

public double getMagnitude2()

setReal

public void setReal(double real)

getImaginary

public double getImaginary()

setImaginary

public void setImaginary(double imaginary)

set

public void set(double real,
                double imaginary)

isReal

public boolean isReal()

toString

public String toString()
Overrides:
toString in class Object


Copyright © 2012. All Rights Reserved.