Package smile.plot.swing
Class QQPlot
java.lang.Object
smile.plot.swing.Shape
smile.plot.swing.Plot
smile.plot.swing.QQPlot
A Q-Q plot ("Q" stands for quantile) is a probability plot, a kind of
graphical method for comparing two probability distributions, by
plotting their quantiles against each other. In addition, Q-Q plots
can be used as a graphical means of estimating parameters in a
location-scale family of distributions.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptiondouble[]
Returns the lower bound of data.double[]
Returns the upper bound of data.static QQPlot
of
(double[] x) One sample Q-Q plot to standard normal distribution.static QQPlot
of
(double[] x, double[] y) Two sample Q-Q plot.static QQPlot
of
(double[] x, Distribution d) One sample Q-Q plot to given distribution.static QQPlot
of
(int[] x, int[] y) Two sample Q-Q plot.static QQPlot
of
(int[] x, DiscreteDistribution d) One sample Q-Q plot to given discrete distribution.void
Draws the shape.
-
Constructor Details
-
QQPlot
public QQPlot(double[][] points) Constructor.- Parameters:
points
- the points in the plot. A point (x, y) on the plot corresponds to one of the quantiles of the second distribution (y-coordinate) plotted against the same quantile of the first distribution (x-coordinate).
-
-
Method Details
-
paint
Description copied from class:Shape
Draws the shape. -
getLowerBound
public double[] getLowerBound()Description copied from class:Plot
Returns the lower bound of data.- Specified by:
getLowerBound
in classPlot
-
getUpperBound
public double[] getUpperBound()Description copied from class:Plot
Returns the upper bound of data.- Specified by:
getUpperBound
in classPlot
-
of
One sample Q-Q plot to standard normal distribution. -
of
One sample Q-Q plot to given distribution. -
of
One sample Q-Q plot to given discrete distribution. -
of
Two sample Q-Q plot. -
of
Two sample Q-Q plot.
-