code: public static double pdf(double val, double rate) {
      return .5 * rate * FastMath.exp(-rate * Math.abs(val));
    }
docs: PDF, static version
  
  @param val Value to compute PDF at
  @param rate Rate parameter (1/scale)
  @return probability density