mirror of
https://github.com/Karaka-Management/phpOMS.git
synced 2026-01-18 12:48:41 +00:00
Update CauchyDistributionTest.php
This commit is contained in:
parent
49ecbc3259
commit
dd99496d75
|
|
@ -40,4 +40,11 @@ class CauchyDistributionTest extends \PHPUnit\Framework\TestCase
|
|||
|
||||
self::assertEquals(0.57798, CauchyDistribution::getCdf($x, $x0, $gamma), '', 0.01);
|
||||
}
|
||||
|
||||
public function testEntropy()
|
||||
{
|
||||
$gamma = 1.5;
|
||||
|
||||
self::assertEquals(log(4 * M_PI * $gamma, CauchyDistribution::getEntropy($gamma), '', 0.01);
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user