Changeset 13518 for branches/HeuristicLab.Problems.GrammaticalOptimization/Evaluation/MainWindow.xaml.cs
- Timestamp:
- 01/15/16 17:42:35 (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/HeuristicLab.Problems.GrammaticalOptimization/Evaluation/MainWindow.xaml.cs
r13492 r13518 1 1 using System.Collections.ObjectModel; 2 using System.Globalization; 2 3 using System.Security.AccessControl; 3 4 using System.Text; … … 192 193 if (policy == typeof(UCTPolicy)) 193 194 { 194 policyInstance = new UCTPolicy(vm. Epsylon);195 policyInstance = new UCTPolicy(vm.PolicyParameter); 195 196 } 196 197 else if (policy == typeof(ThresholdAscentPolicy)) … … 204 205 else if (policy == typeof(EpsGreedyPolicy)) 205 206 { 206 policyInstance = new EpsGreedyPolicy(vm. Epsylon);207 policyInstance = new EpsGreedyPolicy(vm.PolicyParameter); 207 208 } 208 209 else … … 457 458 { 458 459 TextBoxEpsylon.Visibility = Visibility.Visible; 459 TextBoxEpsylon.Text = Math.Sqrt(1).ToString();460 TextBlockEpsylon.Text = "Eps ylon";460 vm.PolicyParameter = 0.5; 461 TextBlockEpsylon.Text = "Epsilon"; 461 462 TextBlockEpsylon.Visibility = Visibility.Visible; 462 463 } … … 464 465 { 465 466 TextBoxEpsylon.Visibility = Visibility.Visible; 466 TextBoxEpsylon.Text = Math.Sqrt(2).ToString();467 vm.PolicyParameter = Math.Sqrt(2); 467 468 TextBlockEpsylon.Text = "c"; 468 469 TextBlockEpsylon.Visibility = Visibility.Visible;
Note: See TracChangeset
for help on using the changeset viewer.