mirror of
				https://github.com/furyfire/trueskill.git
				synced 2025-11-04 02:02:29 +01:00 
			
		
		
		
	Move to DNW namespace
This commit is contained in:
		@@ -1,8 +1,8 @@
 | 
			
		||||
<?php namespace Moserware\Skills\Tests\Numerics;
 | 
			
		||||
<?php namespace DNW\Skills\Tests\Numerics;
 | 
			
		||||
 | 
			
		||||
use Moserware\Skills\Numerics\BasicMath;
 | 
			
		||||
use Moserware\Skills\Numerics\GaussianDistribution;
 | 
			
		||||
use Moserware\Skills\Tests\TestCase;
 | 
			
		||||
use DNW\Skills\Numerics\BasicMath;
 | 
			
		||||
use DNW\Skills\Numerics\GaussianDistribution;
 | 
			
		||||
use DNW\Skills\Tests\TestCase;
 | 
			
		||||
 | 
			
		||||
class GaussianDistributionTest extends TestCase
 | 
			
		||||
{
 | 
			
		||||
@@ -76,7 +76,7 @@ class GaussianDistributionTest extends TestCase
 | 
			
		||||
 | 
			
		||||
    public function testLogRatioNormalization()
 | 
			
		||||
    {
 | 
			
		||||
        // Verified with Ralf Herbrich's F# implementation            
 | 
			
		||||
        // Verified with Ralf Herbrich's F# implementation
 | 
			
		||||
        $m1s2 = new GaussianDistribution(1, 2);
 | 
			
		||||
        $m3s4 = new GaussianDistribution(3, 4);
 | 
			
		||||
        $lrn = GaussianDistribution::logRatioNormalization($m1s2, $m3s4);
 | 
			
		||||
@@ -85,7 +85,7 @@ class GaussianDistributionTest extends TestCase
 | 
			
		||||
 | 
			
		||||
    public function testAbsoluteDifference()
 | 
			
		||||
    {
 | 
			
		||||
        // Verified with Ralf Herbrich's F# implementation            
 | 
			
		||||
        // Verified with Ralf Herbrich's F# implementation
 | 
			
		||||
        $standardNormal = new GaussianDistribution(0, 1);
 | 
			
		||||
        $absDiff = GaussianDistribution::absoluteDifference($standardNormal, $standardNormal);
 | 
			
		||||
        $this->assertEquals(0.0, $absDiff, '', GaussianDistributionTest::ERROR_TOLERANCE);
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user