public static double normalPDF(double x,double variance,double meanValue){
  double standardDeviation=Math.sqrt(variance);
  return (1 / (standardDeviation * Math.sqrt(2 * Math.PI))) * Math.pow(Math.E,-((x - meanValue) * (x - meanValue)) / (2 * variance));
}

public static double normalPDF ( double x , double variance , double meanValue ) { double standardDeviation = Math . sqrt ( variance ) ; return ( 1 / ( standardDeviation * Math . sqrt ( 2 * Math . PI ) ) ) * Math . pow ( Math . E , - ( ( x - meanValue ) * ( x - meanValue ) ) / ( 2 * variance ) ) ; }
calculate a normal probability density function ( pdf ) based on a variance and mean value
