Allow sampling from uniform and categorical distributions #179
test_pull_request.yml
on: pull_request
Matrix: Code coverage
Matrix: Static Analysis
Matrix: Test and Lint
Annotations
4 errors
Static Analysis (7.2):
src/Number/ArbitraryInteger.php#L83
Parameter #1 $number of static method MathPHP\Functions\BaseEncoderDecoder::createArbitraryInteger() expects string, string|false given.
|
Static Analysis (7.2):
src/Probability/Distribution/Discrete/Categorical.php#L173
Method MathPHP\Probability\Distribution\Discrete\Categorical::rand() should return int|string but returns int|string|null.
|
Static Analysis (7.2):
src/Probability/Distribution/Discrete/Uniform.php#L165
Parameter #2 $max of function random_int expects int, float given.
|
Static Analysis (7.2)
Process completed with exit code 1.
|