Changeset 12390 for branches/HeuristicLab.Problems.GrammaticalOptimization-gkr/HeuristicLab.Distributions/GaussianModel.cs
- Timestamp:
- 05/12/15 11:03:08 (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/HeuristicLab.Problems.GrammaticalOptimization-gkr/HeuristicLab.Distributions/GaussianModel.cs
r11976 r12390 87 87 // p(µ|D) = T2αn (µ| µn, βn/(αnκn)) 88 88 89 var t2alpha = alglib.invstudenttdistribution((int)(2 * posteriorAlpha), random.NextDouble());89 var t2alpha = alglib.invstudenttdistribution((int)(2 * posteriorAlpha), Math.Max(random.NextDouble(), 0.00001)); 90 90 91 91 var theta = t2alpha * posteriorBeta / (posteriorAlpha * posteriorK) + posteriorMean;
Note: See TracChangeset
for help on using the changeset viewer.