Changeset 11851 for branches/HeuristicLab.Problems.GrammaticalOptimization/HeuristicLab.Distributions/GaussianMixtureModel.cs
- Timestamp:
- 02/01/15 20:30:44 (10 years ago)
- Location:
- branches/HeuristicLab.Problems.GrammaticalOptimization/HeuristicLab.Distributions
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/HeuristicLab.Problems.GrammaticalOptimization/HeuristicLab.Distributions
-
Property
svn:ignore
set to
bin
*.user
obj
-
Property
svn:ignore
set to
-
branches/HeuristicLab.Problems.GrammaticalOptimization/HeuristicLab.Distributions/GaussianMixtureModel.cs
r11849 r11851 23 23 24 24 25 public double Sample ExpectedReward(Random random) {25 public double Sample(Random random) { 26 26 var k = Enumerable.Range(0, numComponents).SampleProportional(random, componentProbs); 27 27 return alglib.invnormaldistribution(random.NextDouble()) * Math.Sqrt(componentVars[k]) + componentMeans[k]; … … 96 96 this.componentVars = Enumerable.Range(0, numComponents).Select((_) => 0.01).ToArray(); 97 97 } 98 99 public void PrintStats() {100 throw new NotImplementedException();101 }102 98 } 103 99 }
Note: See TracChangeset
for help on using the changeset viewer.