4 references to SampleFromGamma
Microsoft.ML.Core (4)
Utilities\Stats.cs (4)
82
return
SampleFromGamma
(r, alpha + 1) * Math.Pow(r.NextDouble(), 1.0 / alpha);
115
double gamma1 =
SampleFromGamma
(rand, alpha1);
116
double gamma2 =
SampleFromGamma
(rand, alpha2);
134
total += result[i] =
SampleFromGamma
(rand, alphas[i]);