mirror of
https://github.com/Karaka-Management/phpOMS.git
synced 2026-01-11 17:58:41 +00:00
Update CauchyDistribution.php
This commit is contained in:
parent
2305380945
commit
49ecbc3259
|
|
@ -83,6 +83,20 @@ class CauchyDistribution
|
|||
{
|
||||
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()
|
||||
{
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user