public static double cdf(double x,double lambda){
  return 1.0 - Math.exp(-lambda * x);
}

public static double cdf ( double x , double lambda ) { return 1.0 - Math . exp ( - lambda * x ) ; }
cumulative density function of the exponential distribution
