public static double cdf(double val,double mu,double beta){
  return Math.exp(-Math.exp(-(val - mu) / beta));
}

public static double cdf ( double val , double mu , double beta ) { return Math . exp ( - Math . exp ( - ( val - mu ) / beta ) ) ; }
cdf of gumbel distribution
