public static PlotCanvas plot ( double [ ] x ) { double [ ] lowerBound = { Math . min ( x ) , GaussianDistribution . getInstance ( ) . quantile ( 1 / ( x . length + 1.0 ) ) } ; double [ ] upperBound = { Math . max ( x ) , GaussianDistribution . getInstance ( ) . quantile ( x . length / ( x . length + 1.0 ) ) } ; PlotCanvas canvas = new PlotCanvas ( lowerBound , upperBound ) ; canvas . add ( new QQPlot ( x ) ) ; return canvas ; }
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 .