Documentation of 'smile.plot.QQPlot' Java class
QQPlot
smile.plot

Class 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.
    • 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: Shape
        Draw the component with given graphics object.
        Specified by:
        paint in class Shape
      • 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

You see the box below because you did not login.