コード例 #1
0
 private final double getRefBinomialProb(final int depth) {
   if (depth < binomialProbabilityDepthCache.length) return binomialProbabilityDepthCache[depth];
   else return MathUtils.binomialProbability(0, depth, 0.5);
 }
コード例 #2
0
 static {
   for (int i = 1; i < binomialProbabilityDepthCache.length; i++) {
     binomialProbabilityDepthCache[i] = MathUtils.binomialProbability(0, i, 0.5);
   }
 }