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