|
SSJ V. 2.6.2. |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object umontreal.iro.lecuyer.charts.XYChart umontreal.iro.lecuyer.charts.EmpiricalChart
public class EmpiricalChart
This class provides additional tools to create and manage empirical
plots. Empirical plots are used to plot empirical distributions. The
EmpiricalChart
class is the simplest way to produce empirical
plots only. Each EmpiricalChart
object is linked with an
EmpiricalSeriesCollection
data set.
Constructor Summary | |
---|---|
EmpiricalChart()
Initializes a new EmpiricalChart instance with an empty data set. |
|
EmpiricalChart(String title,
String XLabel,
String YLabel,
double[]... data)
Initializes a new EmpiricalChart instance with data data. |
|
EmpiricalChart(String title,
String XLabel,
String YLabel,
double[] data,
int numPoints)
Initializes a new EmpiricalChart instance with a set of points data. |
|
EmpiricalChart(String title,
String XLabel,
String YLabel,
DoubleArrayList... data)
Similar to the above constructor, but with DoubleArrayList. |
|
EmpiricalChart(String title,
String XLabel,
String YLabel,
TallyStore... tallies)
Initializes a new EmpiricalChart instance with data arrays contained in each TallyStore object. |
|
EmpiricalChart(String title,
String XLabel,
String YLabel,
XYSeriesCollection data)
Initializes a new EmpiricalChart instance with data data. |
Method Summary | |
---|---|
EmpiricalSeriesCollection |
getSeriesCollection()
Returns the chart's dataset. |
void |
setSeriesCollection(EmpiricalSeriesCollection dataset)
Links a new dataset to the current chart. |
void |
setTicksSynchro(int s)
Synchronizes x-axis ticks to the s-th series x-values. |
String |
toLatex(double width,
double height)
Exports the chart to a LATEX source code using PGF/TikZ. |
JFrame |
view(int width,
int height)
Displays chart on the screen using Swing. |
Methods inherited from class umontreal.iro.lecuyer.charts.XYChart |
---|
disableGrid, drawVerticalLine, enableGrid, getChartMargin, getJFreeChart, getTitle, getXAxis, getYAxis, setAutoRange, setAutoRange, setAutoRange00, setChartMargin, setLatexDocFlag, setManualRange, setManualRange, setManualRange00, setprobFlag, setTitle, toLatexFile |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public EmpiricalChart()
public EmpiricalChart(String title, String XLabel, String YLabel, double[]... data)
title
- chart title.XLabel
- Label on x-axis.YLabel
- Label on y-axis.data
- series of point sets.public EmpiricalChart(String title, String XLabel, String YLabel, double[] data, int numPoints)
title
- chart title.XLabel
- Label on x-axis.YLabel
- Label on y-axis.data
- series of point sets.numPoints
- number of points to plotpublic EmpiricalChart(String title, String XLabel, String YLabel, DoubleArrayList... data)
DoubleArrayList
from the Colt library is
used to store data. The values of each observation set data[i]
must be sorted in increasing order.
title
- chart title.XLabel
- Label on x-axis.YLabel
- Label on y-axis.data
- series of point sets.public EmpiricalChart(String title, String XLabel, String YLabel, TallyStore... tallies)
TallyStore
object. The input
parameter tallies represents a collection of observation sets.
Therefore, the i-th tallies is used to draw
the i-th plot.
title
- chart title.XLabel
- Label on x-axis.YLabel
- Label on y-axis.tallies
- series of observation sets.public EmpiricalChart(String title, String XLabel, String YLabel, XYSeriesCollection data)
title
- chart title.XLabel
- Label on x-axis.YLabel
- Label on y-axis.data
- series collection.Method Detail |
---|
public EmpiricalSeriesCollection getSeriesCollection()
public void setSeriesCollection(EmpiricalSeriesCollection dataset)
dataset
- new dataset.public void setTicksSynchro(int s)
setTicksSynchro
in class XYChart
s
- series used to define ticks.public JFrame view(int width, int height)
view
in class XYChart
width
- frame width in pixels.height
- frame height in pixels.
public String toLatex(double width, double height)
XYChart
toLatex
in class XYChart
width
- Chart's width in centimeters.height
- Chart's height in centimeters.
|
SSJ V. 2.6.2. |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |