/external/tensorflow/tensorflow/contrib/distributions/python/kernel_tests/ |
D | binomial_test.py | 21 from tensorflow.contrib.distributions.python.ops import binomial 33 binom = binomial.Binomial(total_count=1., probs=p) 43 binom = binomial.Binomial(total_count=n, probs=p) 54 binom = binomial.Binomial(total_count=n, probs=p) 61 binom = binomial.Binomial(total_count=3., probs=p) 69 binom = binomial.Binomial(total_count=3., logits=logits) 78 binom = binomial.Binomial(total_count=n, probs=p, validate_args=True) 97 binom = binomial.Binomial(total_count=n, probs=p, validate_args=True) 111 binom = binomial.Binomial(total_count=n, probs=p, validate_args=False) 123 binom = binomial.Binomial(total_count=1., probs=p) [all …]
|
/external/guava/guava-tests/benchmark/com/google/common/math/ |
D | IntMathBenchmark.java | 38 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()
|
D | BigIntegerMathBenchmark.java | 107 @Benchmark int binomial(int reps) { in binomial() method in BigIntegerMathBenchmark 111 tmp += BigIntegerMath.binomial(factorials[j], binomials[j]).intValue(); in binomial()
|
D | LongMathBenchmark.java | 94 @Benchmark int binomial(int reps) { in binomial() method in LongMathBenchmark 98 tmp += LongMath.binomial(binomialArguments[j][0], binomialArguments[j][1]); in binomial()
|
/external/guava/guava-gwt/test-super/com/google/common/math/super/com/google/common/math/ |
D | LongMathTest.java | 125 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()
|
D | BigIntegerMathTest.java | 181 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/ |
D | LongMathTest.java | 108 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()
|
D | IntMathTest.java | 83 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()
|
D | BigIntegerMathTest.java | 442 assertEquals(expected, BigIntegerMath.binomial(n, k)); 450 BigIntegerMath.binomial(n, -1); 454 BigIntegerMath.binomial(n, n + 1);
|
/external/v8/tools/clang/translation_unit/test_files/ |
D | binomial.h | 8 int binomial(int n, int k) { in binomial() function 9 return k > 0 ? binomial(n - 1, k - 1) * n / k : 1; in binomial()
|
D | test.cc | 17 return result + binomial(42, 1); in main()
|
D | test.h | 13 return binomial(n - 1, k - 1); in calculateNumberOfWaysToDistributeNItemsAmongKPersons()
|
D | test.cc.filepaths.expected | 2 binomial.h
|
/external/guava/guava-gwt/src-super/com/google/common/math/super/com/google/common/math/ |
D | BigIntegerMath.java | 217 public static BigInteger binomial(int n, int k) { in binomial() method in BigIntegerMath 225 return BigInteger.valueOf(LongMath.binomial(n, k)); in binomial()
|
D | LongMath.java | 203 public static long binomial(int n, int k) { in binomial() method in LongMath
|
/external/guava/guava/src/com/google/common/collect/ |
D | Collections2.java | 25 import static com.google.common.math.LongMath.binomial; 441 permutations *= binomial(n, r); in calculateSize() 450 permutations *= binomial(n, r); in calculateSize()
|
/external/swiftshader/third_party/LLVM/test/CodeGen/X86/ |
D | phys_subreg_coalesce-2.ll | 4 define i32 @binomial(i32 %n, i32 %k) nounwind {
|
D | pr2659.ll | 7 define i32 @binomial(i32 %n, i32 %k) nounwind {
|
/external/llvm/test/CodeGen/X86/ |
D | phys_subreg_coalesce-2.ll | 5 define i32 @binomial(i32 %n, i32 %k) nounwind {
|
D | pr2659.ll | 7 define i32 @binomial(i32 %n, i32 %k) nounwind {
|
/external/swiftshader/third_party/llvm-7.0/llvm/test/CodeGen/X86/ |
D | phys_subreg_coalesce-2.ll | 5 define i32 @binomial(i32 %n, i32 %k) nounwind {
|
D | pr2659.ll | 7 define i32 @binomial(i32 %n, i32 %k) nounwind {
|
/external/guava/guava/src/com/google/common/math/ |
D | BigIntegerMath.java | 400 public static BigInteger binomial(int n, int k) { in binomial() method in BigIntegerMath 408 return BigInteger.valueOf(LongMath.binomial(n, k)); in binomial()
|
/external/tensorflow/tensorflow/python/ops/ |
D | sparse_ops_test.py | 64 before *= np.random.binomial(1, .2, before.shape)
|
/external/tensorflow/tensorflow/contrib/distributions/ |
D | __init__.py | 32 from tensorflow.contrib.distributions.python.ops.binomial import *
|