25package umontreal.ssj.charts;
27import umontreal.ssj.probdist.ContinuousDistribution;
28import java.util.Arrays;
44 private double[][] Lin;
46 private void initLinear() {
50 Lin =
new double[2][m + 1];
51 for (
int i = 0; i <= m; i++)
52 Lin[0][i] = Lin[1][i] = h * i;
57 U =
new double[2][numPoints];
59 for (i = 0; i < numPoints; i++)
60 U[1][i] = dist.
cdf(data[i]);
62 for (i = 0; i < numPoints; i++)
63 U[0][i] = (
double) (i + 1) / numPoints;
82 this(title, XLabel, YLabel, dist, X, X.length);
100 initPoints(dist, X, numPoints);
105 init(title, XLabel, YLabel);
126 this(title, XLabel, YLabel, dist, data[r], data[r].length);
PPPlot(String title, String XLabel, String YLabel, ContinuousDistribution dist, double[] X, int numPoints)
Similar to the constructor PPPlot(title, XLabel, YLabel, dist, X) above, except that only the first n...
PPPlot(String title, String XLabel, String YLabel, ContinuousDistribution dist, double[][] data, int r)
Initializes a new PPPlot instance.
PPPlot(String title, String XLabel, String YLabel, ContinuousDistribution dist, double[] X)
Initializes a new PPPlot instance using the points X.
XYLineChart()
Initializes a new XYLineChart instance with an empty data set.
Classes implementing continuous distributions should inherit from this base class.
double cdf(double x)
Returns the distribution function .
XYListSeriesCollection()
Stores data used in a XYLineChart or in other related charts, and provides complementary tools to dra...
void setDashPattern(int series, String dashPattern)
Selects dash pattern for a data series.