mirror of
				https://github.com/furyfire/trueskill.git
				synced 2025-11-04 10:12:28 +01:00 
			
		
		
		
	More coding standards.
Diagrams in API documentation
This commit is contained in:
		@@ -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.
 | 
			
		||||
 
 | 
			
		||||
@@ -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;
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user