|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectuk.ac.ed.ph.signal.Signal
uk.ac.ed.ph.signal.ComplexSignal
public class ComplexSignal
Class to deal with and process Complex Signals where the signal is held as an interleaved array of doubles.
| Field Summary |
|---|
| Fields inherited from class uk.ac.ed.ph.signal.Signal |
|---|
data, fmt, plot |
| Constructor Summary | |
|---|---|
ComplexSignal(ComplexSignal s)
Constrcuor to forma ComplexSignal with all information taked fromthe specifed ComplexSignal inclduing a copy of the data |
|
ComplexSignal(double[] rp,
double[] ip)
Constrctor to forma ComplexSignal from a real and imaginary double[] arrays |
|
ComplexSignal(int n)
Constrcutor to form a ComplexSignal with specified number of data points. |
|
ComplexSignal(RealSignal s)
Constrcuor to forma ComplexSignal with all information taked from the RealSignal only work if RealSignal in in REAL space |
|
| Method Summary | |
|---|---|
ComplexSignal |
clone()
Methed to clone the current signal, inclduing the data |
ComplexSignal |
extract(double start,
double length)
Method to extarct a length of Signal into a new ComplexSignal |
ComplexSignal |
extract(int start,
int length)
Method to extarct a length of Signal into a new ComplexSignal |
ComplexSignal |
extract(int start,
int length,
int sample)
Method to extarct a lengtn of Signal into a new ComplexSignal |
String |
formatElement(int i)
Method to format a single element |
static ComplexSignal |
fromTextFile(File file)
Static to read in ComplexSignal from text data file with two or three doubles per line |
static ComplexSignal |
fromTextFile(String fileName)
Static to read in ComplexSignal from text data file with two doubles per line |
ComplexDataArray |
getDataArray()
Method to get the DataArray |
| Methods inherited from class uk.ac.ed.ph.signal.Signal |
|---|
add, add, add, add, centreFourier, conjugate, conjugate, fillSine, fourier, getComplex, getComplex, getConversion, getCurrentWidth, getDataBuffer, getDouble, getDouble, getPlot, getRealSignal, getRealSignal, getSample, getSampleInterval, getSpace, getStart, getTime, getTitle, getType, getWidth, mult, mult, mult, mult, mult, mult, mult, multConjugate, powerSpectrum, setComplex, setComplex, setConversion, setDouble, setSampleFrequency, setSampleInterval, setStart, setTitle, toGraph, toPlot, toPlot, toPrintWriter, toTextFile, toTextFile, weight |
| Methods inherited from class java.lang.Object |
|---|
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ComplexSignal(int n)
n - number of data points
public ComplexSignal(double[] rp,
double[] ip)
rp - the real arrayip - the imaginary arraypublic ComplexSignal(ComplexSignal s)
s - specifying ComplexSignalpublic ComplexSignal(RealSignal s)
s - specifying ComplexSignal| Method Detail |
|---|
public ComplexSignal clone()
clone in class ObjectComplexSignal clone of curret ComplexSignalpublic ComplexDataArray getDataArray()
public ComplexSignal extract(int start,
int length,
int sample)
start - start element of extarctionlength - length of extarcted signalsample - sample interval
public ComplexSignal extract(int start,
int length)
start - start element of extarctionlength - length of extarcted signal
public ComplexSignal extract(double start,
double length)
start - the start timelength - the length of the extarctionpublic String formatElement(int i)
Signal
i - the element index
String the formatted String.public static ComplexSignal fromTextFile(File file)
file - the text filepublic static ComplexSignal fromTextFile(String fileName)
fileName - the text file
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||