public double pdf(double x){
  if (x < 0.0)   return 0.0;
  return lambda * Math.exp(-x * lambda);
}

public double pdf ( double x ) { if ( x < 0.0 ) return 0.0 ; return lambda * Math . exp ( - x * lambda ) ; }
returns the probability distribution function .
