Changeset 12893 for branches/HeuristicLab.Problems.GrammaticalOptimization-gkr/HeuristicLab.Algorithms.Bandits/ActionInfos/MeanAndVariancePolicyActionInfo.cs
- Timestamp:
- 08/24/15 13:56:27 (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/HeuristicLab.Problems.GrammaticalOptimization-gkr/HeuristicLab.Algorithms.Bandits/ActionInfos/MeanAndVariancePolicyActionInfo.cs
r12290 r12893 12 12 public double SumReward { get { return estimator.Sum; } } 13 13 public double AvgReward { get { return estimator.Avg; } } 14 public double MaxReward { get; private set; } 14 15 public double RewardVariance { get { return estimator.Variance; } } 15 16 public double Value { … … 20 21 21 22 public void UpdateReward(double reward) { 23 MaxReward = Math.Max(MaxReward, reward); 22 24 estimator.UpdateReward(reward); 23 25 } 24 26 25 27 public void Reset() { 28 MaxReward = double.NegativeInfinity; 26 29 estimator.Reset(); 27 30 }
Note: See TracChangeset
for help on using the changeset viewer.