\PhpOffice\PhpSpreadsheet\Calculation\StatisticalPermutations

Summary

Methods
Properties
Constants
PERMUT()
PERMUTATIONA()
No public properties found
No constants found
No protected methods found
No protected properties found
N/A
No private methods found
No private properties found
N/A

Methods

PERMUT()

PERMUT(int  $numObjs, int  $numInSet) : int|string

PERMUT.

Returns the number of permutations for a given number of objects that can be selected from number objects. A permutation is any set or subset of objects or events where internal order is significant. Permutations are different from combinations, for which the internal order is not significant. Use this function for lottery-style probability calculations.

Parameters

int $numObjs

Number of different objects

int $numInSet

Number of objects in each permutation

Returns

int|string —

Number of permutations, or a string containing an error

PERMUTATIONA()

PERMUTATIONA(int  $numObjs, int  $numInSet) : int|string

PERMUTATIONA.

Returns the number of permutations for a given number of objects (with repetitions) that can be selected from the total objects.

Parameters

int $numObjs

Number of different objects

int $numInSet

Number of objects in each permutation

Returns

int|string —

Number of permutations, or a string containing an error