docs: function dbinom(size, p, logp) {
        var lbinom;
  
        logp = logp === true;
        lbinom = dbinomLog(size, p);
  
        if (utils.hasNaN(size, p) ||
            size < 0 || p < 0 || p > 1 ||
            size !== Math.floor(size)) {
           return function() { return NaN; };
        }
  
        return function(x) {
           if (utils.hasNaN(x)) { return NaN; }
  
           if (x < 0 || x > size || Math.floor(x) !== x ||
                        utils.isInfinite(x)) {
              return logp ? -Infinity : 0;
           }
  
           return logp ? lbinom(x) : Math.exp(lbinom(x));
        };
     }