public class Experiment
extends java.lang.Object
Constructor and Description |
---|
Experiment() |
Modifier and Type | Method and Description |
---|---|
void |
addData(java.lang.String serieName,
double x,
double y)
This method allows to add data to a serie Note that an experiment can have
some series of data This allows to plot in the same figure several series
to make a comparison.
|
void |
generatePlot(java.lang.String path,
java.lang.String fichGnuPlot,
java.lang.String fichPNG) |
void |
plotWithPoints(boolean wp)
Plot with points or only lines.
|
void |
setTitle(java.lang.String t)
Sets the title of the plot
|
void |
setXLabel(java.lang.String xl)
Sets the xlabel of the plot
|
void |
setYLabel(java.lang.String yl)
Sets the ylabel of the plot
|
public void addData(java.lang.String serieName, double x, double y)
serieName
- id of the seriex
- value of the independent variabley
- value of the dependent variablepublic void setTitle(java.lang.String t)
t
- titlepublic void setXLabel(java.lang.String xl)
xl
- xlabelpublic void setYLabel(java.lang.String yl)
yl
- ylabelpublic void plotWithPoints(boolean wp)
wp
- true: lines+points, false: linespublic void generatePlot(java.lang.String path, java.lang.String fichGnuPlot, java.lang.String fichPNG)
path
- the path where all files will be createdfichGnuPlot
- the name of the source gnuplot filefichPNG
- the name of the PNG file with the figure