|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.psychomad.waw.Signal
public class Signal
| Constructor Summary | |
|---|---|
Signal(Point[] values)
This constructor allow to create a signal from an array containing its values (like the one we get after a parsing of data file). |
|
Signal(java.lang.String path)
The main constructor of this class. |
|
| Method Summary | |
|---|---|
void |
addInterferences(int nbChanges,
double maxRand)
Add interferences to the current signal. |
double |
getMaxX()
|
double |
getMaxY()
|
double |
getMinX()
|
double |
getMinY()
|
int |
getNbPoints()
|
Point |
getPoint(int i)
|
double |
getRangeX()
|
double |
getRangeY()
|
double |
getValue(double x)
This method returns the value of the signal at the abscisse give in arg. |
void |
saveInFile(java.lang.String filename)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public Signal(java.lang.String path)
path - the path to the file in which is stored the signal.DataFileParserpublic Signal(Point[] values)
values - an array of Points representing the signal.| Method Detail |
|---|
public double getValue(double x)
throws OutOfRangeRequestException
OutOfRangeRequestExceptionpublic double getRangeX()
public double getRangeY()
public double getMinX()
public double getMinY()
public double getMaxX()
public double getMaxY()
public int getNbPoints()
public Point getPoint(int i)
public void addInterferences(int nbChanges,
double maxRand)
public void saveInFile(java.lang.String filename)
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||