More coding standards.

Diagrams in API documentation
This commit is contained in:
2025-05-13 12:46:11 +00:00
parent d729caac1f
commit adc587ac0d
15 changed files with 8707 additions and 44 deletions

View File

@ -27,7 +27,7 @@ final class BasicMath
/**
* Sums the items in $itemsToSum
*
* @param mixed[] $itemsToSum The items to sum,
* @param mixed[] $itemsToSum The items to sum.
* @param \Closure $callback The function to apply to each array element before summing.
*
* @return float The sum.

View File

@ -34,8 +34,9 @@ final class GaussianDistribution
*/
private const float M_LOG_SQRT_2_PI = 0.9189385332046727417803297364056176398613974736377834128171515404;
// precision and precisionMean are used because they make multiplying and dividing simpler
// (see the accompanying math paper for more details)
/**
* Precision and precisionMean are used because they make multiplying and dividing simpler.
*/
private float $precision = 1.0;
private float $precisionMean = 0.0;