public GaussianDensityLayerPlot(Plot p,int ax,double[] sigma){
  super("Gauss quantile of " + p.name,p);
  if (sigma != null)   Array.checkLength(sigma,p.getData().length);
  this.sigma=sigma;
  axis=ax;
  if (sigma != null) {
    gausspdf_sigma=new float[sigma.length][4];
    for (int i=0; i < gausspdf_sigma.length; i++) {
      for (int j=0; j < 4; j++)       gausspdf_sigma[i][j]=(float)(Math.exp(-(j * j) / (2.0 * sigma[i] * sigma[i])));
    }
  }
}

public GaussianDensityLayerPlot ( Plot p , int ax , double [ ] sigma ) { super ( "Gauss quantile of " + p . name , p ) ; if ( sigma != null ) Array . checkLength ( sigma , p . getData ( ) . length ) ; this . sigma = sigma ; axis = ax ; if ( sigma != null ) { gausspdf_sigma = new float [ sigma . length ] [ 4 ] ; for ( int i = 0 ; i < gausspdf_sigma . length ; i ++ ) { for ( int j = 0 ; j < 4 ; j ++ ) gausspdf_sigma [ i ] [ j ] = ( float ) ( Math . exp ( - ( j * j ) / ( 2.0 * sigma [ i ] * sigma [ i ] ) ) ) ; } } }
build a gauss quantile plot based on given plot . the quantile is drawn as a gaussian gradient from the base plot dots .
