title: Does `org.apache.commons.math3.distribution.BinomialDistribution(1,p)` come with much performance overhead?
body: <p>A Bernoulli distribution is equivalent to a binomial distribution with only 1 trial i.e. <code>BinomialDistribution(1,p)</code> from the Apache Commons Math library. A Bernoulli distribution is obviously a much simpler thing than the general binomial distribution.</p>
  
  <p>If performance matters, should I roll my own <code>BernoulliDistribution(p)</code> by subclassing <code>AbstractIntegerDistribution</code>, or would I get almost the same performance by just going with <code>BinomialDistribution(1,p)</code>?</p>