25package umontreal.ssj.charts;
27import umontreal.ssj.probdist.ContinuousDistribution;
28import java.util.Arrays;
45 private double[][] Lin;
47 private void initLinear(
double a,
double b) {
50 double h = (b - a) / m;
51 Lin =
new double[2][m + 1];
52 for (
int i = 0; i <= m; i++)
53 Lin[0][i] = Lin[1][i] = a + h * i;
59 Q =
new double[2][numPoints];
61 for (i = 0; i < numPoints; i++)
64 for (i = 0; i < numPoints; i++) {
65 p = (i + 0.5) / numPoints;
87 this(title, XLabel, YLabel, dist, X, X.length);
105 initPoints(dist, X, numPoints);
106 initLinear(Q[1][0], Q[1][numPoints - 1]);
110 init(title, XLabel, YLabel);
130 this(title, XLabel, YLabel, dist, data[r], data[r].length);
QQPlot(String title, String XLabel, String YLabel, ContinuousDistribution dist, double[][] data, int r)
Constructs a new QQPlot instance.
QQPlot(String title, String XLabel, String YLabel, ContinuousDistribution dist, double[] X, int numPoints)
Similar to the constructor QQPlot(title, XLabel, YLabel, dist, X) above, except that only the first n...
QQPlot(String title, String XLabel, String YLabel, ContinuousDistribution dist, double[] X)
Constructs a new QQPlot 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 inverseF(double u)
Returns the inverse 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.