程序包 org.hipparchus.util

类 CombinatoricsUtilsTest

java.lang.Object
org.hipparchus.util.CombinatoricsUtilsTest

public class CombinatoricsUtilsTest extends Object
CombinatoricsUtils类的测试用例。
  • 构造器详细资料

    • CombinatoricsUtilsTest

      public CombinatoricsUtilsTest()
  • 方法详细资料

    • test0Choose0

      public void test0Choose0()
      验证 b(0,0) = 1
    • testBinomialCoefficient

      public void testBinomialCoefficient()
    • testBinomialCoefficientFail

      public void testBinomialCoefficientFail()
    • testBinomialCoefficientLarge

      public void testBinomialCoefficientLarge() throws Exception
      对大 n 的正确性和 API 文档中上界的尖锐度进行测试 JIRA: MATH-241
      抛出:
      Exception
    • testFactorial

      public void testFactorial()
    • testFactorialFail

      public void testFactorialFail()
    • testStirlingS2

      public void testStirlingS2()
    • testStirlingS2NegativeN

      public void testStirlingS2NegativeN()
    • testStirlingS2LargeK

      public void testStirlingS2LargeK()
    • testStirlingS2Overflow

      public void testStirlingS2Overflow()
    • testCheckBinomial1

      public void testCheckBinomial1()
    • testCheckBinomial2

      public void testCheckBinomial2()
    • testCheckBinomial3

      public void testCheckBinomial3()
    • testBellNumber

      public void testBellNumber()
    • testBellNegative

      public void testBellNegative()
    • testBellLarge

      public void testBellLarge()
    • testPartitions0

      public void testPartitions0()
    • testPartitions1

      public void testPartitions1()
    • testPartitions4

      public void testPartitions4()
    • testPartitions42

      public void testPartitions42()
    • testPartitionsCount

      public void testPartitionsCount()
    • testExhaustedPartitionsCount

      public void testExhaustedPartitionsCount()
    • testPermutations0

      public void testPermutations0()
    • testPermutations1

      public void testPermutations1()
    • testPermutations3

      public void testPermutations3()
    • testPermutationsCount

      public void testPermutationsCount()
    • testExhaustedPermutationsCount

      public void testExhaustedPermutationsCount()