mirror of
https://github.com/Karaka-Management/phpOMS.git
synced 2026-02-08 05:18:40 +00:00
Update CauchyDistribution.php
This commit is contained in:
parent
2305380945
commit
49ecbc3259
|
|
@ -83,6 +83,20 @@ class CauchyDistribution
|
||||||
{
|
{
|
||||||
return $x0;
|
return $x0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Get entropy.
|
||||||
|
*
|
||||||
|
* @param float $gamma Gamma / scale parameter
|
||||||
|
*
|
||||||
|
* @return float
|
||||||
|
*
|
||||||
|
* @since 1.0.0
|
||||||
|
*/
|
||||||
|
public static function getEntropy(float $gamma) : float
|
||||||
|
{
|
||||||
|
return log(4 * M_PI * $gamma);
|
||||||
|
}
|
||||||
|
|
||||||
public static function getRandom()
|
public static function getRandom()
|
||||||
{
|
{
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user