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