public static double quantile(double val,double mu,double beta){
  return mu + beta * Math.log(1 / Math.log(1 / val));
}

public static double quantile ( double val , double mu , double beta ) { return mu + beta * Math . log ( 1 / Math . log ( 1 / val ) ) ; }
quantile function of gumbel distribution
