|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectuk.ac.ed.ph.signal.Function
public abstract class Function
Abstarct class to implemet a real Function in one dimension. This class also implements toPlot function using ptplot.
Field Summary | |
---|---|
protected double |
maxPlotRange
Upper range of plot |
protected double |
minPlotRange
Lower range of plot |
Constructor Summary | |
---|---|
Function()
|
Method Summary | |
---|---|
ptolemy.plot.Plot |
getPlot()
Method to get the Plot object. |
int |
getPlotPoints()
Method to get the number of plotpoints |
abstract double |
getValue(double x)
Method to get the value as specific value |
void |
setPlotPoints(int points)
Method to set the number of point in a plot. |
void |
setPlotRange(double min,
double max)
Method to set the range of a plot. |
void |
toPlot(int ds)
Method to plot the function to an internal Plot class. |
void |
toPlot(ptolemy.plot.Plot p,
int ds)
Void method to add a line to a ptplot Plot dataset using the default range. |
void |
toPlot(ptolemy.plot.Plot p,
int ds,
double minPlot,
double maxPlot)
Void method to add a line to a ptplot Plot dataset |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected double minPlotRange
protected double maxPlotRange
Constructor Detail |
---|
public Function()
Method Detail |
---|
public abstract double getValue(double x)
x
- the x value
double
value of the function.public void setPlotPoints(int points)
points
- number of points.public int getPlotPoints()
int
the number of pointspublic ptolemy.plot.Plot getPlot()
public void setPlotRange(double min, double max)
min
- minimum range.max
- maximum rangepublic void toPlot(int ds)
ds
- the data setpublic void toPlot(ptolemy.plot.Plot p, int ds)
p
- the Plot to which it is addedds
- the datasetpublic void toPlot(ptolemy.plot.Plot p, int ds, double minPlot, double maxPlot)
p
- the Plot to which it is addedds
- the dataset to hold the spectrumminPlot
- minumum value on plotmaxPlot
- maximum value on plot
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |