PHP Class MathPHP\Probability\CombinatoricsTest

Inheritance: extends PHPUnit_Framework_TestCase
Afficher le fichier Open project: markrogoyski/math-php

Méthodes publiques

Méthode Description
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 )

Method Details

dataProviderForCatalanNumber() public méthode

dataProviderForCentralBinomialCoefficient() public méthode

dataProviderForCombinations() public méthode

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

dataProviderForCombinationsWithRepetition() public méthode

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

dataProviderForDoubleFactorial() public méthode

dataProviderForFactorialPermutations() public méthode

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

dataProviderForFallingFactorial() public méthode

dataProviderForLahNumber() public méthode

dataProviderForLahNumberExceptionNOrKLessThanOne() public méthode

dataProviderForMultinomialTheorem() public méthode

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

dataProviderForPermutationsChooseK() public méthode

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

dataProviderForRisingFactorial() public méthode

dataProviderForSubfactorial() public méthode

testCatalanNumber() public méthode

public testCatalanNumber ( $n, $!n )

testCatalanNumberExceptionNLessThanZero() public méthode

testCentralBinomialCoefficient() public méthode

public testCentralBinomialCoefficient ( $n, $!n )

testCentralBinomialCoefficientExceptionNLessThanZero() public méthode

testCombinations() public méthode

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

testCombinationsExceptionNLessThanZero() public méthode

testCombinationsExceptionRLargerThanN() public méthode

testCombinationsRGreaterThanNException() public méthode

testCombinationsWithRepetition() public méthode

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

testCombinationsWithRepetitionBoundsException() public méthode

testDoubleFactorial() public méthode

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

testDoubleFactorialExceptionNLessThanZero() public méthode

testFactorial() public méthode

public testFactorial ( $n, $factorial )

testFactorialBoundsException() public méthode

testFallingFactorial() public méthode

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

testFallingFactorialExceptionNLessThanZero() public méthode

testLahNumber() public méthode

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

testLahNumberExceptionNLessThanK() public méthode

testLahNumberExceptionNOrKLessThanOne() public méthode

public testLahNumberExceptionNOrKLessThanOne ( integer $n, integer $k ) : [type]
$n integer
$k integer
Résultat [type]

testMultinomialTheorem() public méthode

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

testPermutations() public méthode

public testPermutations ( $n, $permutations )

testPermutationsBoundsException() public méthode

testPermutationsChooseK() public méthode

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

testPermutationsChooseKBoundsException() public méthode

testPermutationsChooseKKGreaterThanNException() public méthode

testRisingFactorial() public méthode

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

testRisingFactorialExceptionNLessThanZero() public méthode

testSubactorialExceptionNLessThanZero() public méthode

testSubfactorial() public méthode

public testSubfactorial ( $n, $!n )