|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnet.sarcommand.fft.ComplexSignal
public class ComplexSignal
Field Summary | |
---|---|
protected float[] |
_imag
Holds the imaginary parts of the complex numbers in this signal. |
protected float[] |
_real
Holds the real parts of the complex numbers in this signal. |
int |
height
If the signal is twodimensional, this variable holds the signals height. |
int |
length
This signal's total length. |
int |
width
If the signal is twodimensional, this variable holds the signals width. |
Constructor Summary | |
---|---|
ComplexSignal()
Creates a new complex signal. |
|
ComplexSignal(int size)
Creates a new onedimensional signal with the length 'size'. |
|
ComplexSignal(int width,
int height)
Creates a new twodimensional signal. |
Method Summary | |
---|---|
ComplexSignal |
copy()
Creates an exact copy of this signal. |
boolean |
equals(java.lang.Object o)
Returns whether this signal is completely equal to the specified one. |
float[] |
getImaginaryPart()
Returns the signal's imaginary part. |
float[] |
getRealPart()
Returns the signal's real part. |
boolean |
is2D()
Returns whether this signal is twodimensional. |
void |
readExternal(java.io.ObjectInput in)
|
void |
writeExternal(java.io.ObjectOutput out)
|
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected float[] _real
protected float[] _imag
public int length
public int width
public int height
Constructor Detail |
---|
public ComplexSignal()
public ComplexSignal(int size)
size
- Length of signalpublic ComplexSignal(int width, int height)
width
- Signal's widthheight
- Signal's heightMethod Detail |
---|
public float[] getRealPart()
public float[] getImaginaryPart()
public ComplexSignal copy()
public boolean is2D()
public void writeExternal(java.io.ObjectOutput out) throws java.io.IOException
writeExternal
in interface java.io.Externalizable
java.io.IOException
Externalizable.writeExternal(java.io.ObjectOutput)
public void readExternal(java.io.ObjectInput in) throws java.io.IOException, java.lang.ClassNotFoundException
readExternal
in interface java.io.Externalizable
java.io.IOException
java.lang.ClassNotFoundException
Externalizable.readExternal(java.io.ObjectInput)
public boolean equals(java.lang.Object o)
equals
in class java.lang.Object
o
- Signal to compare with
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |