public static double quantile(double val,double rate){
  return -Math.log(1 - val) / rate;
}

public static double quantile ( double val , double rate ) { return - Math . log ( 1 - val ) / rate ; }
quantile function , static version
