mirror of
https://github.com/furyfire/trueskill.git
synced 2025-06-27 15:21:31 +00:00
Move to DNW namespace
This commit is contained in:
@ -1,4 +1,4 @@
|
||||
<?php namespace Moserware\Skills\Numerics;
|
||||
<?php namespace DNW\Skills\Numerics;
|
||||
|
||||
/**
|
||||
* Basic math functions.
|
||||
|
@ -1,4 +1,4 @@
|
||||
<?php namespace Moserware\Skills\Numerics;
|
||||
<?php namespace DNW\Skills\Numerics;
|
||||
|
||||
class DiagonalMatrix extends Matrix
|
||||
{
|
||||
|
@ -1,4 +1,4 @@
|
||||
<?php namespace Moserware\Skills\Numerics;
|
||||
<?php namespace DNW\Skills\Numerics;
|
||||
|
||||
/**
|
||||
* Computes Gaussian (bell curve) values.
|
||||
@ -177,7 +177,7 @@ class GaussianDistribution
|
||||
|
||||
private static function errorFunctionCumulativeTo($x)
|
||||
{
|
||||
// Derived from page 265 of Numerical Recipes 3rd Edition
|
||||
// Derived from page 265 of Numerical Recipes 3rd Edition
|
||||
$z = abs($x);
|
||||
|
||||
$t = 2.0 / (2.0 + $z);
|
||||
@ -229,7 +229,7 @@ class GaussianDistribution
|
||||
|
||||
private static function inverseErrorFunctionCumulativeTo($p)
|
||||
{
|
||||
// From page 265 of numerical recipes
|
||||
// From page 265 of numerical recipes
|
||||
|
||||
if ($p >= 2.0) {
|
||||
return -100;
|
||||
|
@ -1,4 +1,4 @@
|
||||
<?php namespace Moserware\Skills\Numerics;
|
||||
<?php namespace DNW\Skills\Numerics;
|
||||
|
||||
class IdentityMatrix extends DiagonalMatrix
|
||||
{
|
||||
|
@ -1,4 +1,4 @@
|
||||
<?php namespace Moserware\Skills\Numerics;
|
||||
<?php namespace DNW\Skills\Numerics;
|
||||
|
||||
use Exception;
|
||||
|
||||
|
@ -1,4 +1,4 @@
|
||||
<?php namespace Moserware\Skills\Numerics;
|
||||
<?php namespace DNW\Skills\Numerics;
|
||||
|
||||
// The whole purpose of this class is to make the code for the SkillCalculator(s)
|
||||
// look a little cleaner
|
||||
@ -9,7 +9,7 @@ class Range
|
||||
{
|
||||
private $_min;
|
||||
private $_max;
|
||||
|
||||
|
||||
public function __construct($min, $max)
|
||||
{
|
||||
if ($min > $max)
|
||||
@ -24,13 +24,13 @@ class Range
|
||||
public function getMin()
|
||||
{
|
||||
return $this->_min;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
public function getMax()
|
||||
{
|
||||
return $this->_max;
|
||||
}
|
||||
|
||||
|
||||
protected static function create($min, $max)
|
||||
{
|
||||
return new Range($min, $max);
|
||||
|
@ -1,4 +1,4 @@
|
||||
<?php namespace Moserware\Skills\Numerics;
|
||||
<?php namespace DNW\Skills\Numerics;
|
||||
|
||||
class SquareMatrix extends Matrix
|
||||
{
|
||||
|
@ -1,4 +1,4 @@
|
||||
<?php namespace Moserware\Skills\Numerics;
|
||||
<?php namespace DNW\Skills\Numerics;
|
||||
|
||||
class Vector extends Matrix
|
||||
{
|
||||
|
Reference in New Issue
Block a user