SSJ
V. labo.

umontreal.iro.lecuyer.charts
Class QQPlot

java.lang.Object
  extended by umontreal.iro.lecuyer.charts.XYChart
      extended by umontreal.iro.lecuyer.charts.XYLineChart
          extended by umontreal.iro.lecuyer.charts.QQPlot

public class QQPlot
extends XYLineChart

QQPlot

This class implements QQ-plot (or quantile-quantile plot) objects that compare two probability distributions. The data is given as a list of x-coordinates (x1, x2,…, xn), and one is given a reference continuous probability distribution F(x). One first sorts the xi in ascending order, then noted x(i), and plots the points (F-1(pi), x(i)), where i = 1, 2,…, n and pi = (i - 1/2)/n, to see if the data xi comes from the reference distribution F(x). The graph of the straight line y = x is also plotted for comparison.


Constructor Summary
QQPlot(String title, String XLabel, String YLabel, ContinuousDistribution dist, double[] X)
          .
QQPlot(String title, String XLabel, String YLabel, ContinuousDistribution dist, double[][] data, int r)
          .
QQPlot(String title, String XLabel, String YLabel, ContinuousDistribution dist, double[] X, int numPoints)
          .
 
Method Summary
 
Methods inherited from class umontreal.iro.lecuyer.charts.XYLineChart
add, add, add, add, add, getSeriesCollection, setSeriesCollection, setTicksSynchro, toLatex, view, viewBar
 
Methods inherited from class umontreal.iro.lecuyer.charts.XYChart
disableGrid, drawVerticalLine, enableGrid, getChartMargin, getJFreeChart, getTitle, getXAxis, getYAxis, setAutoRange, setAutoRange, setAutoRange00, setChartMargin, setLatexDocFlag, setManualRange, setManualRange, setManualRange00, setprobFlag, setTitle, toLatexFile
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

QQPlot

public QQPlot(String title,
              String XLabel,
              String YLabel,
              ContinuousDistribution dist,
              double[] X)
. \begin{tabb}
 Constructs a new \texttt{QQPlot} instance using the points \texttt...
 ... $\texttt{ dist.inverseF($p$)}. The points \texttt{X} are not sorted.
 \end{tabb}
titlechart title. XLabelLabel on x-axis. YLabelLabel on y-axis. distReference distribution Xpoints.


QQPlot

public QQPlot(String title,
              String XLabel,
              String YLabel,
              ContinuousDistribution dist,
              double[] X,
              int numPoints)
. \begin{tabb}
 Similar to the constructor %
 \method{QQPlot}{String,String,String...
 ... only \emph{the first} \texttt{numPoints} of \texttt{X}
 are plotted.
 \end{tabb}
titlechart title. XLabelLabel on x-axis. YLabelLabel on y-axis. distReference distribution Xpoint set. numPointsnumber of points to plot


QQPlot

public QQPlot(String title,
              String XLabel,
              String YLabel,
              ContinuousDistribution dist,
              double[][] data,
              int r)
. \begin{tabb}
 Constructs a new \texttt{QQPlot} instance.
 \texttt{title} is a ti...
 ...r$. The points are assumed to follow the distribution
 \texttt{dist}.
 \end{tabb}
titlechart title. XLabelLabel on x-axis. YLabelLabel on y-axis. distReference distribution dataseries of point sets. rset of points to plot


SSJ
V. labo.

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