SSJ
V. 2.6.

umontreal.iro.lecuyer.charts
Class YListSeriesCollection

java.lang.Object
  extended by umontreal.iro.lecuyer.charts.SSJXYSeriesCollection
      extended by umontreal.iro.lecuyer.charts.XYListSeriesCollection
          extended by umontreal.iro.lecuyer.charts.YListSeriesCollection

public class YListSeriesCollection
extends XYListSeriesCollection

This class extends XYListSeriesCollection. The data is given as lists of y-coordinates. The x-coordinates are regularly spaced multiples of the indices of the data points.


Constructor Summary
YListSeriesCollection(boolean flag, double[]... data)
          Similar to the constructor above, except that if flag is true, the points are (j + 1,data[j]) for each series; but if flag is false, the points are ((j + 1)/n,data[j]), where n is the number of points of each series in data.
YListSeriesCollection(double[]... data)
          Creates a new YListSeriesCollection instance with default parameters and given data series.
YListSeriesCollection(double[][] data, int numPoints)
          Creates a new YListSeriesCollection instance with default parameters and given data series.
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 (hjdata[j - 1]), for j = 1, 2,…,numPoints.
 
Method Summary
 
Methods inherited from class umontreal.iro.lecuyer.charts.XYListSeriesCollection
add, add, add, add, add, disableAutoCompletion, enableAutoCompletion, getDashPattern, getMarksType, getName, getPlotStyle, setDashPattern, setMarksType, setName, setPlotStyle, toLatex
 
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

YListSeriesCollection

public 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,data[j]) on the chart.

Parameters:
data - series of point sets.

YListSeriesCollection

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

Parameters:
flag - to choose the step between x-coordinates
data - series of point sets.

YListSeriesCollection

public 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 (jdata[j - 1]), for j = 1, 2,…,numPoints.

Parameters:
data - point set.
numPoints - Number of points to plot

YListSeriesCollection

public YListSeriesCollection(double h,
                             double[] data,
                             int numPoints)
Similar to the constructor YListSeriesCollection(data, numPoints) above, but the points are (hjdata[j - 1]), for j = 1, 2,…,numPoints.

Parameters:
h - step between x-coordinates
data - point set.
numPoints - Number of points to plot

YListSeriesCollection

public 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,data[j]) on the chart. However, only the first numPoints of data will be considered for each series of points.

Parameters:
data - series of point sets.
numPoints - Number of points to plot

SSJ
V. 2.6.

To submit a bug or ask questions, send an e-mail to Pierre L'Ecuyer.