mirror of
				https://github.com/furyfire/trueskill.git
				synced 2025-11-04 10:12:28 +01:00 
			
		
		
		
	More return types. Basic example
This commit is contained in:
		@@ -11,7 +11,7 @@ use DNW\Skills\Numerics\GaussianDistribution;
 | 
			
		||||
/**
 | 
			
		||||
 * Factor that sums together multiple Gaussians.
 | 
			
		||||
 *
 | 
			
		||||
 * See the accompanying math paper for more details.s
 | 
			
		||||
 * See the accompanying math paper for more details.
 | 
			
		||||
 */
 | 
			
		||||
class GaussianWeightedSumFactor extends GaussianFactor
 | 
			
		||||
{
 | 
			
		||||
@@ -213,7 +213,7 @@ class GaussianWeightedSumFactor extends GaussianFactor
 | 
			
		||||
        );
 | 
			
		||||
    }
 | 
			
		||||
 | 
			
		||||
    private static function createName($sumVariable, $variablesToSum, $weights)
 | 
			
		||||
    private static function createName(string $sumVariable, array $variablesToSum, array $weights): string
 | 
			
		||||
    {
 | 
			
		||||
        // TODO: Perf? Use PHP equivalent of StringBuilder? implode on arrays?
 | 
			
		||||
        $result = (string) $sumVariable;
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user