|
SSJ V. 2.6. |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object umontreal.iro.lecuyer.charts.SSJXYSeriesCollection umontreal.iro.lecuyer.charts.EmpiricalSeriesCollection
public class EmpiricalSeriesCollection
Stores data used in a EmpiricalChart. EmpiricalSeriesCollection provides complementary tools to draw empirical distribution charts, like add plots series. This class is linked with XYSeriesCollection class from JFreeChart to store data plots, and linked with JFreeChart EmpiricalRenderer to render the plot. EmpiricalRenderer has been developed at the Université de Montréal to extend the JFreeChart API, and is used to render charts with an empirical chart style in a JFreeChart chart.
Constructor Summary | |
---|---|
EmpiricalSeriesCollection()
Creates a new EmpiricalSeriesCollection instance with empty dataset. |
|
EmpiricalSeriesCollection(double[]... data)
Creates a new EmpiricalSeriesCollection instance with default parameters and given data series. |
|
EmpiricalSeriesCollection(double[] data,
int numPoints)
Creates a new EmpiricalSeriesCollection instance with default parameters and a given series data. |
|
EmpiricalSeriesCollection(cern.colt.list.DoubleArrayList... data)
Creates a new EmpiricalSeriesCollection instance with default parameters and given data. |
|
EmpiricalSeriesCollection(TallyStore... tallies)
Creates a new EmpiricalSeriesCollection instance with default parameters and given data. |
|
EmpiricalSeriesCollection(XYSeriesCollection data)
Creates a new EmpiricalSeriesCollection instance with default parameters and given data series. |
Method Summary | |
---|---|
int |
add(double[] observationSet)
Adds a data series into the series collection. |
int |
add(double[] observationSet,
int numPoints)
Adds a data series into the series collection. |
int |
add(cern.colt.list.DoubleArrayList observationSet)
Adds a data series into the series collection. |
int |
add(TallyStore tally)
Adds a data series into the series collection. |
String |
getDashPattern(int series)
Returns the dash pattern associated with the series-th data series. |
String |
getMarksType(int series)
Returns the mark type associated with the series-th data series. |
void |
setDashPattern(int series,
String dashPattern)
Selects dash pattern for a data series. |
void |
setMarksType(int series,
String marksType)
Adds marks on points to a data series. |
String |
toLatex(double XScale,
double YScale,
double XShift,
double YShift,
double xmin,
double xmax,
double ymin,
double ymax)
Formats and returns a string containing a LATEX-compatible source code which represents this data series collection. |
Methods inherited from class umontreal.iro.lecuyer.charts.SSJXYSeriesCollection |
---|
getColor, getDomainBounds, getRangeBounds, getRenderer, getSeriesCollection, getX, getY, setColor, setRenderer, toString |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public EmpiricalSeriesCollection()
public EmpiricalSeriesCollection(double[]... data)
data
- series of point sets.public EmpiricalSeriesCollection(double[] data, int numPoints)
data
- series of point sets.public EmpiricalSeriesCollection(cern.colt.list.DoubleArrayList... data)
DoubleArrayList
variable corresponds
to an observation set.
data
- series of point sets.public EmpiricalSeriesCollection(TallyStore... tallies)
tallies
- series of point sets.public EmpiricalSeriesCollection(XYSeriesCollection data)
data
- series of point sets.Method Detail |
---|
public int add(double[] observationSet)
observationSet
- new series values.
public int add(double[] observationSet, int numPoints)
observationSet
- new series values.numPoints
- number of points to add.
public int add(cern.colt.list.DoubleArrayList observationSet)
observationSet
- new series values.
public int add(TallyStore tally)
tally
- TallyStore
to add values.
public String getMarksType(int series)
series
- series index.
public void setMarksType(int series, String marksType)
series
- series index.marksType
- mark type.public String getDashPattern(int series)
series
- series index.
public void setDashPattern(int series, String dashPattern)
series
- series index.dashPattern
- dash style.public String toLatex(double XScale, double YScale, double XShift, double YShift, double xmin, double xmax, double ymin, double ymax)
SSJXYSeriesCollection
toLatex
in class SSJXYSeriesCollection
XScale
- Domain original data scale.YScale
- Range original data scale.XShift
- Domain original data shift value.YShift
- Range original data shift value.xmin
- Domain min bound.xmax
- Domain nax bound.ymin
- Range min bound.ymax
- Range nax bound.
|
SSJ V. 2.6. |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |