SSJ API Documentation
Stochastic Simulation in Java
Loading...
Searching...
No Matches
umontreal.ssj.charts.YListSeriesCollection Class Reference

This class extends umontreal.ssj.charts.XYListSeriesCollection. More...

Inheritance diagram for umontreal.ssj.charts.YListSeriesCollection:

Public Member Functions

 YListSeriesCollection (double[]... data)
 Creates a new YListSeriesCollection instance with default parameters and given data series.
 YListSeriesCollection (boolean flag, double[]... data)
 Similar to the constructor YListSeriesCollection(data) above, except that if flag is true, the points are \((j+1, \mbox{\texttt{data}}[j])\) for each series; but if flag is false, the points are \(((j+1)/n, \mbox{\texttt{data}}[j])\), where \(n\) is the number of points of each series in data.
 YListSeriesCollection (double[] data, int numPoints)
 Creates a new YListSeriesCollection instance with default parameters and one data series.
 YListSeriesCollection (double h, double[] data, int numPoints)
 Similar to the constructor YListSeriesCollection(data, numPoints) above, but the points are.
 YListSeriesCollection (double[][] data, int numPoints)
 Creates a new YListSeriesCollection instance with default parameters and given data series.

Detailed Description

This class extends umontreal.ssj.charts.XYListSeriesCollection.

The data is given as lists of \(y\)-coordinates. The \(x\)-coordinates are regularly spaced multiples of the indices of the data points.

Definition at line 38 of file YListSeriesCollection.java.

Constructor & Destructor Documentation

◆ YListSeriesCollection() [1/5]

umontreal.ssj.charts.YListSeriesCollection.YListSeriesCollection ( double...[] data)

Creates a new YListSeriesCollection instance with default parameters and given data series.

The input vectors represent sets of plotting data. More specifically, each vector data represents a

\(y\)-coordinates set. Position in the vector will form the \(x\)-coordinates. Indeed the value data \([j]\) corresponds to the point \((j+1, \mbox{\texttt{data}}[j])\) on the chart.

Parameters
dataseries of point sets.

Definition at line 110 of file YListSeriesCollection.java.

◆ YListSeriesCollection() [2/5]

umontreal.ssj.charts.YListSeriesCollection.YListSeriesCollection ( boolean flag,
double...[] data )

Similar to the constructor YListSeriesCollection(data) above, except that if flag is true, the points are \((j+1, \mbox{\texttt{data}}[j])\) for each series; but if flag is false, the points are \(((j+1)/n, \mbox{\texttt{data}}[j])\), where \(n\) is the number of points of each series in data.

Parameters
flagto choose the step between \(x\)-coordinates
dataseries of point sets.

Definition at line 124 of file YListSeriesCollection.java.

◆ YListSeriesCollection() [3/5]

umontreal.ssj.charts.YListSeriesCollection.YListSeriesCollection ( double[] data,
int numPoints )

Creates a new YListSeriesCollection instance with default parameters and one data series.

The vector data represents the

\(y\)-coordinate of the points, and position in the vector represents the \(x\)-coordinate. However, only the first numPoints of data will be considered in the series. Thus the coordinates of the points are given by \((j, \mbox{\texttt{data}}[j-1])\), for \(j=1,2,…, \mathtt{numPoints}\).

Parameters
datapoint set.
numPointsNumber of points to plot

Definition at line 141 of file YListSeriesCollection.java.

◆ YListSeriesCollection() [4/5]

umontreal.ssj.charts.YListSeriesCollection.YListSeriesCollection ( double h,
double[] data,
int numPoints )

Similar to the constructor YListSeriesCollection(data, numPoints) above, but the points are.

\((hj, \mbox{\texttt{data}}[j-1])\), for \(j=1,2,…, \mathtt{numPoints}\).

Parameters
hstep between \(x\)-coordinates
datapoint set.
numPointsNumber of points to plot

Definition at line 155 of file YListSeriesCollection.java.

◆ YListSeriesCollection() [5/5]

umontreal.ssj.charts.YListSeriesCollection.YListSeriesCollection ( double data[][],
int numPoints )

Creates a new YListSeriesCollection instance with default parameters and given data series.

The matrix data represents a set of plotting data. More specifically, each row of data represents a

\(y\)-coordinates set. Position in the vector will form the \(x\)-coordinates. Indeed, for each serie \(i\), the value data \([i][j]\) corresponds to the point \((j+1, \mbox{\texttt{data}}[j])\) on the chart. However, only the first numPoints of data will be considered for each series of points.

Parameters
dataseries of point sets.
numPointsNumber of points to plot

Definition at line 173 of file YListSeriesCollection.java.


The documentation for this class was generated from the following file: