private double normalDens(double x,double mean,double stdDev){
  double diff=x - mean;
  return (1 / (m_normConst * stdDev)) * Math.exp(-(diff * diff / (2 * stdDev * stdDev)));
}

private double normalDens ( double x , double mean , double stdDev ) { double diff = x - mean ; return ( 1 / ( m_normConst * stdDev ) ) * Math . exp ( - ( diff * diff / ( 2 * stdDev * stdDev ) ) ) ; }
density function of normal distribution .
