code: public static double quantile(double val, double rate) {
      return val >= 0 && val <= 1 ? -FastMath.log(1 - val) / rate : Double.NaN;
    }
docs: Quantile function, static version
  
  @param val Value to compute quantile for
  @param rate Rate parameter
  @return Quantile