code: function pWrap(lowerTail, logp, f) {
           return function(prob) {
              var probs;
  
              probs = utils.trueProbs(prob, lowerTail, logp);
  
              return probs.p >= 0 && probs.q >= 0 ? f(probs) : NaN;
           };
        }
docs: /*
  Given a function 'f(prob)', returns a function of the probability
  which has been adjusted in the space specified by 'lowerTail' and
  'logp'.  The new function wraps f, ensuring that f is called on
  an actual left-tail probability (unlogged, complemented if
  necessary).