SSJ
3.3.1
Stochastic Simulation in Java
|
Stores data used in a EmpiricalChart
.
More...
Public Member Functions | |
EmpiricalSeriesCollection () | |
Creates a new EmpiricalSeriesCollection instance with empty dataset. | |
EmpiricalSeriesCollection (double[]... data) | |
Creates a new EmpiricalSeriesCollection instance with default parameters and given data series. More... | |
EmpiricalSeriesCollection (double[] data, int numPoints) | |
Creates a new EmpiricalSeriesCollection instance with default parameters and a given series data . More... | |
EmpiricalSeriesCollection (DoubleArrayList... data) | |
Creates a new EmpiricalSeriesCollection instance with default parameters and given data. More... | |
EmpiricalSeriesCollection (TallyStore... tallies) | |
Creates a new EmpiricalSeriesCollection instance with default parameters and given data. More... | |
EmpiricalSeriesCollection (XYSeriesCollection data) | |
Creates a new EmpiricalSeriesCollection instance with default parameters and given data series. More... | |
Data control methods | |
int | add (double[] observationSet) |
Adds a data series into the series collection. More... | |
int | add (double[] observationSet, int numPoints) |
Adds a data series into the series collection. More... | |
int | add (DoubleArrayList observationSet) |
Adds a data series into the series collection. More... | |
int | add (TallyStore tally) |
Adds a data series into the series collection. More... | |
Rendering methods | |
String | getMarksType (int series) |
Returns the mark type associated with the series -th data series. More... | |
void | setMarksType (int series, String marksType) |
Adds marks on points to a data series. More... | |
String | getDashPattern (int series) |
Returns the dash pattern associated with the series -th data series. More... | |
void | setDashPattern (int series, String dashPattern) |
Selects dash pattern for a data series. More... | |
String | toLatex (double XScale, double YScale, double XShift, double YShift, double xmin, double xmax, double ymin, double ymax) |
Public Member Functions inherited from SSJXYSeriesCollection | |
double | getX (int series, int index) |
Returns the \(x\)-value at the specified index in the specified series. More... | |
double | getY (int series, int index) |
Returns the \(y\)-value at the specified index in the specified series. More... | |
XYDataset | getSeriesCollection () |
Returns the XYDataset object associated with the current object. More... | |
double [] | getDomainBounds () |
Returns domain ( \(x\)-coordinates) min and max values. More... | |
double [] | getRangeBounds () |
Returns range ( \(y\)-coordinates) min and max values. More... | |
String | toString () |
Returns in a String all data contained in the current object. More... | |
XYItemRenderer | getRenderer () |
Returns the XYItemRenderer object associated with the current object. More... | |
void | setRenderer (XYItemRenderer renderer) |
Sets the XYItemRenderer object associated with the current variable. More... | |
Color | getColor (int series) |
Gets the current plotting color of the selected series. More... | |
void | setColor (int series, Color color) |
Sets a new plotting color to the series \(series\). More... | |
abstract 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. More... | |
Additional Inherited Members | |
Static Protected Member Functions inherited from SSJXYSeriesCollection | |
static String | detectXColorClassic (Color color) |
Converts a java Color object into a friendly and readable LaTeX/xcolor string. More... | |
static Color | getDefaultColor (int index) |
Gives the default color associated with a series. More... | |
static double | max (double[] t) |
static double | min (double[] t) |
Protected Attributes inherited from SSJXYSeriesCollection | |
XYItemRenderer | renderer |
XYDataset | seriesCollection |
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.
EmpiricalSeriesCollection | ( | double... [] | data | ) |
Creates a new EmpiricalSeriesCollection
instance with default parameters and given data series.
Each input parameter represents an observation set. The values of this observation set must be sorted in increasing order.
data | series of point sets. |
EmpiricalSeriesCollection | ( | double [] | data, |
int | numPoints | ||
) |
Creates a new EmpiricalSeriesCollection
instance with default parameters and a given series data
.
The values of data
must be sorted in increasing order. However, only the first numPoints
of data
will be considered for the series.
data | series of point sets |
numPoints | number of points to plot |
EmpiricalSeriesCollection | ( | DoubleArrayList... | data | ) |
Creates a new EmpiricalSeriesCollection
instance with default parameters and given data.
The input parameter represents a collection of data observation sets. Each DoubleArrayList
input parameter represents an observation set. The values of this observation set must be sorted in increasing order. Each DoubleArrayList variable corresponds to an observation set.
data | series of point sets. |
EmpiricalSeriesCollection | ( | TallyStore... | tallies | ) |
Creates a new EmpiricalSeriesCollection
instance with default parameters and given data.
The input parameter represents a collection of data observation sets. Each TallyStore
input parameter represents an observation set.
tallies | series of point sets. |
EmpiricalSeriesCollection | ( | XYSeriesCollection | data | ) |
Creates a new EmpiricalSeriesCollection
instance with default parameters and given data series.
The input parameter represents a set of plotting data. Each series of the given collection corresponds to a plot on the chart.
data | series of point sets. |
int add | ( | double [] | observationSet | ) |
Adds a data series into the series collection.
observationSet | new series values. |
XYSeriesCollection
object. int add | ( | double [] | observationSet, |
int | numPoints | ||
) |
Adds a data series into the series collection.
Only the first numPoints
of observationSet
will be added to the new series.
observationSet | new series values. |
numPoints | number of points to add. |
XYSeriesCollection
object. int add | ( | DoubleArrayList | observationSet | ) |
Adds a data series into the series collection.
observationSet | new series values. |
XYSeriesCollection
object. int add | ( | TallyStore | tally | ) |
Adds a data series into the series collection.
tally | umontreal.ssj.stat.TallyStore to add values. |
XYSeriesCollection
object. String getDashPattern | ( | int | series | ) |
Returns the dash pattern associated with the series
-th data series.
series | series index. |
String getMarksType | ( | int | series | ) |
Returns the mark type associated with the series
-th data series.
series | series index. |
void setDashPattern | ( | int | series, |
String | dashPattern | ||
) |
Selects dash pattern for a data series.
It is possible to use all the dash options provided by the TikZ package: solid, dotted, densely dotted, loosely dotted, dashed, densely dashed and loosely dashed.
series | series index. |
dashPattern | dash style. |
void setMarksType | ( | int | series, |
String | marksType | ||
) |
Adds marks on points to a data series.
It is possible to use all the marks provided by the TikZ package, some of which are *
, +
and x
. A blank character, used by default, will disable marks. The PGF/TikZ documentation provides more information about placing marks on plots.
series | series index. |
marksType | mark type. |