Home
last modified time | relevance | path

Searched refs:binomial (Results 1 – 18 of 18) sorted by relevance

/external/guava/guava-tests/benchmark/com/google/common/math/
DIntMathBenchmark.java38 private static int[] binomial = new int[ARRAY_SIZE]; field in IntMathBenchmark
48 binomial[i] = RANDOM_SOURCE.nextInt(factorial[i] + 1); in setUp()
91 @Benchmark int binomial(int reps) { in binomial() method in IntMathBenchmark
95 tmp += IntMath.binomial(factorial[j], binomial[j]); in binomial()
DBigIntegerMathBenchmark.java107 @Benchmark int binomial(int reps) { in binomial() method in BigIntegerMathBenchmark
111 tmp += BigIntegerMath.binomial(factorials[j], binomials[j]).intValue(); in binomial()
DLongMathBenchmark.java94 @Benchmark int binomial(int reps) { in binomial() method in LongMathBenchmark
98 tmp += LongMath.binomial(binomialArguments[j][0], binomialArguments[j][1]); in binomial()
DApacheBenchmark.java59 return LongMath.binomial(n, k); in binomialCoefficient()
/external/guava/guava-gwt/test-super/com/google/common/math/super/com/google/common/math/
DLongMathTest.java125 BigInteger expectedBig = BigIntegerMath.binomial(n, k); in testBinomial()
127 assertEquals(expectedLong, LongMath.binomial(n, k)); in testBinomial()
135 LongMath.binomial(n, -1); in testBinomialOutside()
139 LongMath.binomial(n, n + 1); in testBinomialOutside()
148 LongMath.binomial(n, 0); in testBinomialNegative()
DBigIntegerMathTest.java181 assertEquals(expected, BigIntegerMath.binomial(n, k)); in runBinomialTest()
189 BigIntegerMath.binomial(n, -1); in testBinomialOutside()
193 BigIntegerMath.binomial(n, n + 1); in testBinomialOutside()
/external/guava/guava-tests/test/com/google/common/math/
DLongMathTest.java108 assertTrue(fitsInLong(BigIntegerMath.binomial(LongMath.biggestBinomials[k], k))); in testConstantsBiggestBinomials()
110 || !fitsInLong(BigIntegerMath.binomial(LongMath.biggestBinomials[k] + 1, k))); in testConstantsBiggestBinomials()
115 assertFalse(fitsInLong(BigIntegerMath.binomial(2 * k, k))); in testConstantsBiggestBinomials()
563 BigInteger expectedBig = BigIntegerMath.binomial(n, k); in testBinomial()
565 assertEquals(expectedLong, LongMath.binomial(n, k)); in testBinomial()
576 assertEquals(BigIntegerMath.binomial(n, k).longValue(), LongMath.binomial(n, k)); in testBinomial_exhaustiveNotOverflowing()
584 LongMath.binomial(n, -1); in testBinomialOutside()
588 LongMath.binomial(n, n + 1); in testBinomialOutside()
597 LongMath.binomial(n, 0); in testBinomialNegative()
DIntMathTest.java83 assertTrue(fitsInInt(BigIntegerMath.binomial(IntMath.biggestBinomials[k], k))); in testConstantsBiggestBinomials()
85 || !fitsInInt(BigIntegerMath.binomial(IntMath.biggestBinomials[k] + 1, k))); in testConstantsBiggestBinomials()
90 fitsInInt(BigIntegerMath.binomial( in testConstantsBiggestBinomials()
485 BigInteger expectedBig = BigIntegerMath.binomial(n, k); in testBinomial()
487 assertEquals(expectedInt, IntMath.binomial(n, k)); in testBinomial()
496 IntMath.binomial(n, -1); in testBinomialOutside()
500 IntMath.binomial(n, n + 1); in testBinomialOutside()
510 IntMath.binomial(n, 0); in testBinomialNegative()
DBigIntegerMathTest.java442 assertEquals(expected, BigIntegerMath.binomial(n, k));
450 BigIntegerMath.binomial(n, -1);
454 BigIntegerMath.binomial(n, n + 1);
/external/guava/guava-gwt/src-super/com/google/common/math/super/com/google/common/math/
DBigIntegerMath.java217 public static BigInteger binomial(int n, int k) { in binomial() method in BigIntegerMath
225 return BigInteger.valueOf(LongMath.binomial(n, k)); in binomial()
DLongMath.java203 public static long binomial(int n, int k) { in binomial() method in LongMath
/external/guava/guava/src/com/google/common/collect/
DCollections2.java25 import static com.google.common.math.LongMath.binomial;
441 permutations *= binomial(n, r); in calculateSize()
450 permutations *= binomial(n, r); in calculateSize()
/external/llvm/test/CodeGen/X86/
Dphys_subreg_coalesce-2.ll5 define i32 @binomial(i32 %n, i32 %k) nounwind {
Dpr2659.ll7 define i32 @binomial(i32 %n, i32 %k) nounwind {
/external/guava/guava/src/com/google/common/math/
DBigIntegerMath.java400 public static BigInteger binomial(int n, int k) { in binomial() method in BigIntegerMath
408 return BigInteger.valueOf(LongMath.binomial(n, k)); in binomial()
DIntMath.java524 public static int binomial(int n, int k) {
DLongMath.java648 public static long binomial(int n, int k) {
/external/libcxx/include/
Drandom4012 // Reference: Kemp, C.D. (1986). `A modal method for generating binomial