public boolean isNormal(boolean bOnlyValue,double dPValueForRejection){
  double dPRes=0.0;
  double dSD=standardDeviation(bOnlyValue);
  double dSkewness=getCentralMoment(bOnlyValue,3) / Math.pow(dSD,3.0);
  double dKurtosis=getCentralMoment(bOnlyValue,4) / Math.pow(dSD,4.0);
  double dJB=(observationCount(bOnlyValue) / 6.0) * (Math.pow(dSkewness,2.0) + (Math.pow(dKurtosis - 3,2.0) / 4));
  dPRes=ChiSquareDistributionBase.getPValue(dJB);
  return dPRes > dPValueForRejection;
}

public boolean isNormal ( boolean bOnlyValue , double dPValueForRejection ) { double dPRes = 0.0 ; double dSD = standardDeviation ( bOnlyValue ) ; double dSkewness = getCentralMoment ( bOnlyValue , 3 ) / Math . pow ( dSD , 3.0 ) ; double dKurtosis = getCentralMoment ( bOnlyValue , 4 ) / Math . pow ( dSD , 4.0 ) ; double dJB = ( observationCount ( bOnlyValue ) / 6.0 ) * ( Math . pow ( dSkewness , 2.0 ) + ( Math . pow ( dKurtosis - 3 , 2.0 ) / 4 ) ) ; dPRes = ChiSquareDistributionBase . getPValue ( dJB ) ; return dPRes > dPValueForRejection ; }
performs a normality test ( jb - test ) for the given distribution .
