Class org.broadinstitute.hellbender.utils.MathUtilsUnitTest

95

tests

0

failures

0

ignored

10.344s

duration

100%

successful

Tests

Test Duration Result
naturalLogSumNaturalLogTest 0.002s passed
testAddDoubles 0.001s passed
testAllMatchDouble 0.001s passed
testAllMatchInt 0s passed
testApplyToArray 0.001s passed
testApplyToArrayInPlace 0s passed
testApproximateLogSumLog 0.011s passed
testBinarySearchFindZero[0](org.broadinstitute.hellbender.utils.MathUtilsUnitTest$$Lambda$641/0x00007f7a787f7470@94d4dd, -1.0, 1.0, 0.001, OptionalDouble[0.0]) 0.001s passed
testBinarySearchFindZero[1](org.broadinstitute.hellbender.utils.MathUtilsUnitTest$$Lambda$642/0x00007f7a787f76b0@11225084, 1.0, 2.0, 0.001, OptionalDouble.empty) 0s passed
testBinarySearchFindZero[2](org.broadinstitute.hellbender.utils.MathUtilsUnitTest$$Lambda$643/0x00007f7a787f78f0@6d48f1c, 0.0, 2.0, 0.001, OptionalDouble[1.4142135623730951]) 0s passed
testBinarySearchFindZero[3](org.broadinstitute.hellbender.utils.MathUtilsUnitTest$$Lambda$644/0x00007f7a787f7b30@6c6c7ee5, 0.0, 2.0, 0.001, OptionalDouble.empty) 0s passed
testBinarySearchFindZero[4](org.broadinstitute.hellbender.utils.MathUtilsUnitTest$$Lambda$645/0x00007f7a787f7d70@271fdeaf, 0, 10, 0.001, OptionalDouble[4.0]) 0s passed
testBinomialProbability 0s passed
testCompareDoubles 0s passed
testDirichletMultinomial 10.299s passed
testDistanceSquaredDifferentLengths[0]([D@5a0379e2, [D@50564f77, NaN) 0s passed
testDistanceSquared[0]([D@30350c73, [D@34c9c4be, 0.0) 0.001s passed
testDistanceSquared[1]([D@39a7fff, [D@798ca706, 0.0) 0s passed
testDistanceSquared[2]([D@3dbcdd4a, [D@6d093885, 0.0) 0s passed
testDistanceSquared[3]([D@5c8adab7, [D@7070ae1, 3.0) 0s passed
testFastBernoulliEntropy 0s passed
testGoodProbability 0s passed
testLog10OneMinusPow10[0](NaN, NaN) 0s passed
testLog10OneMinusPow10[10](-1000.0, 0.0) 0s passed
testLog10OneMinusPow10[11](-3000.0, 0.0) 0s passed
testLog10OneMinusPow10[1](10.0, NaN) 0s passed
testLog10OneMinusPow10[2](1.0, NaN) 0s passed
testLog10OneMinusPow10[3](0.0, -Infinity) 0s passed
testLog10OneMinusPow10[4](-1.0, -0.045757490560675115) 0s passed
testLog10OneMinusPow10[5](-3.0, -4.345117740176917E-4) 0s passed
testLog10OneMinusPow10[6](-10.0, -4.342945178586531E-11) 0s passed
testLog10OneMinusPow10[7](-30.0, 0.0) 0s passed
testLog10OneMinusPow10[8](-100.0, 0.0) 0s passed
testLog10OneMinusPow10[9](-300.0, 0.0) 0s passed
testLog10OneMinusX 0s passed
testLog10sumLog10 0.006s passed
testLog1mexp[0](NaN, NaN) 0s passed
testLog1mexp[10](-1000.0, 0.0) 0s passed
testLog1mexp[11](-3000.0, 0.0) 0s passed
testLog1mexp[1](10.0, NaN) 0s passed
testLog1mexp[2](1.0, NaN) 0s passed
testLog1mexp[3](0.0, -Infinity) 0s passed
testLog1mexp[4](-1.0, -0.45867514538708193) 0s passed
testLog1mexp[5](-3.0, -0.051069180942701596) 0s passed
testLog1mexp[6](-10.0, -4.54009603704951E-5) 0.001s passed
testLog1mexp[7](-30.0, -9.359180097590508E-14) 0s passed
testLog1mexp[8](-100.0, 0.0) 0s passed
testLog1mexp[9](-300.0, 0.0) 0s passed
testLogLog10conversions 0s passed
testLogSumLog 0s passed
testMaxElementIndex 0s passed
testMedianOfEmptyList 0s passed
testMedianOfNullList 0s passed
testMedian[0]([0], 0) 0s passed
testMedian[1]([0, 1, 2], 1) 0s passed
testMedian[2]([1, 0, 2], 1) 0s passed
testMedian[3]([0, 1], 0.5) 0s passed
testMedian[4]([-10.0, 0, 10.5], 0) 0s passed
testMedian[5]([1, 1, 5, 2, 1, 5, 1, 9], 1.5) 0s passed
testNextPermutation 0s passed
testNormalDistribution 0.010s passed
testNormalize 0s passed
testNormalizeFromReal 0s passed
testRandomSelect 0.007s passed
testRandomSelectFlatProbability 0.002s passed
testRoundingError 0s passed
testRounding[0](3.1415926, 8, 3.1415926) 0s passed
testRounding[10](0.43452380952380953, 2, 0.43) 0s passed
testRounding[1](3.1415926, 7, 3.1415926) 0s passed
testRounding[2](3.1415926, 6, 3.141593) 0s passed
testRounding[3](3.1415926, 5, 3.14159) 0s passed
testRounding[4](3.1415926, 4, 3.1416) 0s passed
testRounding[5](3.1415926, 3, 3.142) 0s passed
testRounding[6](3.1415926, 2, 3.14) 0s passed
testRounding[7](3.1415926, 1, 3.1) 0s passed
testRounding[8](1.025, 2, 1.03) 0s passed
testRounding[9](34.356845398701736, 4, 34.3568) 0s passed
testRunningAverage 0s passed
testSecondSmallestMinusSmallest 0s passed
testSum 0s passed
testSumArrayFunction 0.001s passed
testSumCollection 0s passed
testSumLog10 0s passed
testSumRange 0s passed
testToIntExactOrThrowGoodCases[0](2147483647) 0s passed
testToIntExactOrThrowGoodCases[1](10000) 0s passed
testToIntExactOrThrowGoodCases[2](10) 0s passed
testToIntExactOrThrowGoodCases[3](0) 0s passed
testToIntExactOrThrowGoodCases[4](-10000) 0s passed
testToIntExactOrThrowGoodCases[5](-2147483648) 0s passed
testToIntExactOrThrowThrowingCases[0](2147483648) 0s passed
testToIntExactOrThrowThrowingCases[1](-2147483649) 0s passed
testToIntExactOrThrowThrowingCases[2](214748364700) 0s passed
testlogsumLogEdgeCases 0s passed
testlogsumLogErrorNaN 0s passed

Standard output

3 likelihoods and max is (probability) 1.000000e+00
6 likelihoods and max is (probability) 1.000000e+00
11 likelihoods and max is (probability) 1.000000e+00
21 likelihoods and max is (probability) 1.000000e+00
26 likelihoods and max is (probability) 1.000000e+00
3 likelihoods and max is (probability) 1.000000e+00
6 likelihoods and max is (probability) 1.000000e+00
11 likelihoods and max is (probability) 1.000000e+00
21 likelihoods and max is (probability) 1.000000e+00
26 likelihoods and max is (probability) 1.000000e+00
3 likelihoods and max is (probability) 1.000000e+00
6 likelihoods and max is (probability) 1.000000e+00
11 likelihoods and max is (probability) 1.000000e+00
21 likelihoods and max is (probability) 1.000000e+00
26 likelihoods and max is (probability) 1.000000e+00
3 likelihoods and max is (probability) 1.000000e+00
6 likelihoods and max is (probability) 1.000000e+00
11 likelihoods and max is (probability) 1.000000e+00
21 likelihoods and max is (probability) 1.000000e+00
26 likelihoods and max is (probability) 1.000000e+00
6 likelihoods and max is (probability) 1.000000e+00
21 likelihoods and max is (probability) 1.000000e+00
66 likelihoods and max is (probability) 1.000000e+00
231 likelihoods and max is (probability) 1.000000e+00
351 likelihoods and max is (probability) 1.000000e+00
6 likelihoods and max is (probability) 1.000000e+00
21 likelihoods and max is (probability) 1.000000e+00
66 likelihoods and max is (probability) 1.000000e+00
231 likelihoods and max is (probability) 1.000000e+00
351 likelihoods and max is (probability) 1.000000e+00
10 likelihoods and max is (probability) 1.000000e+00
56 likelihoods and max is (probability) 1.000000e+00
286 likelihoods and max is (probability) 1.000000e+00
1771 likelihoods and max is (probability) 1.000000e+00
3276 likelihoods and max is (probability) 1.000000e+00
15 likelihoods and max is (probability) 1.000000e+00
126 likelihoods and max is (probability) 1.000000e+00
1001 likelihoods and max is (probability) 1.000000e+00
10626 likelihoods and max is (probability) 1.000000e+00
23751 likelihoods and max is (probability) 1.000000e+00
36 likelihoods and max is (probability) 1.000000e+00
792 likelihoods and max is (probability) 1.000000e+00
19448 likelihoods and max is (probability) 1.000000e+00
888030 likelihoods and max is (probability) 1.000000e+00
3365856 likelihoods and max is (probability) 1.000000e+00