Home
last modified time | relevance | path

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

12

/external/tensorflow/tensorflow/contrib/distributions/python/kernel_tests/
Dbinomial_test.py21 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/
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()
/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/v8/tools/clang/translation_unit/test_files/
Dbinomial.h8 int binomial(int n, int k) { in binomial() function
9 return k > 0 ? binomial(n - 1, k - 1) * n / k : 1; in binomial()
Dtest.cc17 return result + binomial(42, 1); in main()
Dtest.h13 return binomial(n - 1, k - 1); in calculateNumberOfWaysToDistributeNItemsAmongKPersons()
Dtest.cc.filepaths.expected2 binomial.h
/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/swiftshader/third_party/LLVM/test/CodeGen/X86/
Dphys_subreg_coalesce-2.ll4 define i32 @binomial(i32 %n, i32 %k) nounwind {
Dpr2659.ll7 define i32 @binomial(i32 %n, i32 %k) nounwind {
/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/swiftshader/third_party/llvm-7.0/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()
/external/tensorflow/tensorflow/python/ops/
Dsparse_ops_test.py64 before *= np.random.binomial(1, .2, before.shape)
/external/tensorflow/tensorflow/contrib/distributions/
D__init__.py32 from tensorflow.contrib.distributions.python.ops.binomial import *

12