NlpTools API
Class

NlpTools\Random\Distributions\Gamma

class Gamma extends AbstractDistribution

Implement the gamma distribution.

The implementation is ported to php from c++. C++ is written by John
D. Cook and can be found at http://www.johndcook.com/SimpleRNG.cpp

Methods

__construct($shape, $scale, GeneratorInterface $rnd = null)

sample()

Details

at line 19
public __construct($shape, $scale, GeneratorInterface $rnd = null)

Parameters

$shape
$scale
GeneratorInterface $rnd

at line 32
public sample()