PHP 클래스 MathPHP\Probability\CombinatoricsTest

상속: extends PHPUnit_Framework_TestCase
파일 보기 프로젝트 열기: markrogoyski/math-php

공개 메소드들

메소드 설명
dataProviderForCatalanNumber ( )
dataProviderForCentralBinomialCoefficient ( )
dataProviderForCombinations ( ) Data provider for combinations tests Data: [ n, r, combinations ]
dataProviderForCombinationsWithRepetition ( ) Data provider for combinations with repetition tests Data: [ n, r, combinations ]
dataProviderForDoubleFactorial ( )
dataProviderForFactorialPermutations ( ) Data provider for factorial and permutations tests Data: [ n, permutations ]
dataProviderForFallingFactorial ( )
dataProviderForLahNumber ( )
dataProviderForLahNumberExceptionNOrKLessThanOne ( )
dataProviderForMultinomialTheorem ( ) Data provider for multinomial theorem tests Data: [ n, groups, divisions ]
dataProviderForPermutationsChooseK ( ) Data provider for permutations choose k tests Data: [ n, k, permutations ]
dataProviderForRisingFactorial ( )
dataProviderForSubfactorial ( )
testCatalanNumber ( $n, $!n )
testCatalanNumberExceptionNLessThanZero ( )
testCentralBinomialCoefficient ( $n, $!n )
testCentralBinomialCoefficientExceptionNLessThanZero ( )
testCombinations ( $n, $r, $combinations )
testCombinationsExceptionNLessThanZero ( )
testCombinationsExceptionRLargerThanN ( )
testCombinationsRGreaterThanNException ( )
testCombinationsWithRepetition ( $n, $r, $combinations )
testCombinationsWithRepetitionBoundsException ( )
testDoubleFactorial ( integer $n, $factorial )
testDoubleFactorialExceptionNLessThanZero ( )
testFactorial ( $n, $factorial )
testFactorialBoundsException ( )
testFallingFactorial ( $x, integer $n, $factorial )
testFallingFactorialExceptionNLessThanZero ( )
testLahNumber ( $k, integer $n, $lah )
testLahNumberExceptionNLessThanK ( )
testLahNumberExceptionNOrKLessThanOne ( integer $n, integer $k ) : [type]
testMultinomialTheorem ( array $groups, $divisions )
testPermutations ( $n, $permutations )
testPermutationsBoundsException ( )
testPermutationsChooseK ( $n, $k, $nPk )
testPermutationsChooseKBoundsException ( )
testPermutationsChooseKKGreaterThanNException ( )
testRisingFactorial ( $x, integer $n, $factorial )
testRisingFactorialExceptionNLessThanZero ( )
testSubactorialExceptionNLessThanZero ( )
testSubfactorial ( $n, $!n )

메소드 상세

dataProviderForCatalanNumber() 공개 메소드

dataProviderForCentralBinomialCoefficient() 공개 메소드

dataProviderForCombinations() 공개 메소드

Data provider for combinations tests Data: [ n, r, combinations ]

dataProviderForCombinationsWithRepetition() 공개 메소드

Data provider for combinations with repetition tests Data: [ n, r, combinations ]

dataProviderForDoubleFactorial() 공개 메소드

dataProviderForFactorialPermutations() 공개 메소드

Data provider for factorial and permutations tests Data: [ n, permutations ]

dataProviderForFallingFactorial() 공개 메소드

dataProviderForLahNumber() 공개 메소드

dataProviderForLahNumberExceptionNOrKLessThanOne() 공개 메소드

dataProviderForMultinomialTheorem() 공개 메소드

Data provider for multinomial theorem tests Data: [ n, groups, divisions ]

dataProviderForPermutationsChooseK() 공개 메소드

Data provider for permutations choose k tests Data: [ n, k, permutations ]

dataProviderForRisingFactorial() 공개 메소드

dataProviderForSubfactorial() 공개 메소드

testCatalanNumber() 공개 메소드

public testCatalanNumber ( $n, $!n )

testCatalanNumberExceptionNLessThanZero() 공개 메소드

testCentralBinomialCoefficient() 공개 메소드

public testCentralBinomialCoefficient ( $n, $!n )

testCentralBinomialCoefficientExceptionNLessThanZero() 공개 메소드

testCombinations() 공개 메소드

public testCombinations ( $n, $r, $combinations )

testCombinationsExceptionNLessThanZero() 공개 메소드

testCombinationsExceptionRLargerThanN() 공개 메소드

testCombinationsRGreaterThanNException() 공개 메소드

testCombinationsWithRepetition() 공개 메소드

public testCombinationsWithRepetition ( $n, $r, $combinations )

testCombinationsWithRepetitionBoundsException() 공개 메소드

testDoubleFactorial() 공개 메소드

public testDoubleFactorial ( integer $n, $factorial )
$n integer

testDoubleFactorialExceptionNLessThanZero() 공개 메소드

testFactorial() 공개 메소드

public testFactorial ( $n, $factorial )

testFactorialBoundsException() 공개 메소드

testFallingFactorial() 공개 메소드

public testFallingFactorial ( $x, integer $n, $factorial )
$n integer

testFallingFactorialExceptionNLessThanZero() 공개 메소드

testLahNumber() 공개 메소드

public testLahNumber ( $k, integer $n, $lah )
$n integer

testLahNumberExceptionNLessThanK() 공개 메소드

testLahNumberExceptionNOrKLessThanOne() 공개 메소드

public testLahNumberExceptionNOrKLessThanOne ( integer $n, integer $k ) : [type]
$n integer
$k integer
리턴 [type]

testMultinomialTheorem() 공개 메소드

public testMultinomialTheorem ( array $groups, $divisions )
$groups array

testPermutations() 공개 메소드

public testPermutations ( $n, $permutations )

testPermutationsBoundsException() 공개 메소드

testPermutationsChooseK() 공개 메소드

public testPermutationsChooseK ( $n, $k, $nPk )

testPermutationsChooseKBoundsException() 공개 메소드

testPermutationsChooseKKGreaterThanNException() 공개 메소드

testRisingFactorial() 공개 메소드

public testRisingFactorial ( $x, integer $n, $factorial )
$n integer

testRisingFactorialExceptionNLessThanZero() 공개 메소드

testSubactorialExceptionNLessThanZero() 공개 메소드

testSubfactorial() 공개 메소드

public testSubfactorial ( $n, $!n )