org.psychomad.waw
Class Signal

java.lang.Object
  extended by org.psychomad.waw.Signal

public class Signal
extends java.lang.Object


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

Signal

public Signal(java.lang.String path)
The main constructor of this class.

Parameters:
path - the path to the file in which is stored the signal.
See Also:
DataFileParser

Signal

public 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).

Parameters:
values - an array of Points representing the signal.
Method Detail

getValue

public double getValue(double x)
                throws OutOfRangeRequestException
This method returns the value of the signal at the abscisse give in arg. The value is an linear paroximation between two original points of the signal.

Throws:
OutOfRangeRequestException

getRangeX

public double getRangeX()

getRangeY

public double getRangeY()

getMinX

public double getMinX()

getMinY

public double getMinY()

getMaxX

public double getMaxX()

getMaxY

public double getMaxY()

getNbPoints

public int getNbPoints()

getPoint

public Point getPoint(int i)

addInterferences

public void addInterferences(int nbChanges,
                             double maxRand)
Add interferences to the current signal.


saveInFile

public void saveInFile(java.lang.String filename)


Copyright © 2006. All Rights Reserved.