smile.plot
Class QQPlot
- java.lang.Object
-
- smile.plot.Shape
-
- smile.plot.Plot
-
- smile.plot.QQPlot
-
public class QQPlot extends Plot
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
Constructors Constructor and Description QQPlot(double[] x)Constructor of one sample Q-Q plot to standard normal distribution.QQPlot(double[] x, Distribution d)Constructor of one sample Q-Q plot to given distribution.QQPlot(double[] x, double[] y)Constructor of two sample Q-Q plot.QQPlot(int[] x, DiscreteDistribution d)Constructor of one sample Q-Q plot to given distribution.QQPlot(int[] x, int[] y)Constructor of two sample Q-Q plot.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method and Description voidpaint(Graphics g)Draw the component with given graphics object.static PlotCanvasplot(double[] x)Create a plot canvas with the one sample Q-Q plot to standard normal distribution.static PlotCanvasplot(double[] x, Distribution d)Create a plot canvas with the one sample Q-Q plot to given distribution.static PlotCanvasplot(double[] x, double[] y)Create a plot canvas with the two sample Q-Q plot.static PlotCanvasplot(int[] x, DiscreteDistribution d)Create a plot canvas with the one sample Q-Q plot to given distribution.static PlotCanvasplot(int[] x, int[] y)Create a plot canvas with the two sample Q-Q plot.-
Methods inherited from class smile.plot.Plot
getID, getToolBar, getToolTip, setID
-
-
-
-
Constructor Detail
-
QQPlot
public QQPlot(double[] x)
Constructor of one sample Q-Q plot to standard normal distribution.
-
QQPlot
public QQPlot(double[] x, Distribution d)Constructor of one sample Q-Q plot to given distribution.
-
QQPlot
public QQPlot(int[] x, DiscreteDistribution d)Constructor of one sample Q-Q plot to given distribution.
-
QQPlot
public QQPlot(double[] x, double[] y)Constructor of two sample Q-Q plot.
-
QQPlot
public QQPlot(int[] x, int[] y)Constructor of two sample Q-Q plot.
-
-
Method Detail
-
paint
public void paint(Graphics g)
Description copied from class:ShapeDraw the component with given graphics object.
-
plot
public static PlotCanvas plot(double[] x)
Create a plot canvas with the one sample Q-Q plot to standard normal distribution. The x-axis is the quantiles of x and the y-axis is the quantiles of normal distribution.- Parameters:
x- a sample set.
-
plot
public static PlotCanvas plot(double[] x, Distribution d)
Create a plot canvas with the one sample Q-Q plot to given distribution. The x-axis is the quantiles of x and the y-axis is the quantiles of given distribution.- Parameters:
x- a sample set.d- a distribution.
-
plot
public static PlotCanvas plot(double[] x, double[] y)
Create a plot canvas with the two sample Q-Q plot. The x-axis is the quantiles of x and the y-axis is the quantiles of y.- Parameters:
x- a sample set.y- a sample set.
-
plot
public static PlotCanvas plot(int[] x, DiscreteDistribution d)
Create a plot canvas with the one sample Q-Q plot to given distribution. The x-axis is the quantiles of x and the y-axis is the quantiles of given distribution.- Parameters:
x- a sample set.d- a distribution.
-
plot
public static PlotCanvas plot(int[] x, int[] y)
Create a plot canvas with the two sample Q-Q plot. The x-axis is the quantiles of x and the y-axis is the quantiles of y.- Parameters:
x- a sample set.y- a sample set.
-
-
DataMelt 3.0 © DataMelt by jWork.ORG