Changeset 5522 for branches/HeuristicLab.MetaOptimization/HeuristicLab.Problems.MetaOptimization/3.3/Encoding/ParameterConfigurations/ParameterConfiguration.cs
- Timestamp:
- 02/21/11 00:46:33 (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/HeuristicLab.MetaOptimization/HeuristicLab.Problems.MetaOptimization/3.3/Encoding/ParameterConfigurations/ParameterConfiguration.cs
r5361 r5522 493 493 } 494 494 } 495 496 public double CalculateSimilarity(IOptimizable optimizable) { 497 var other = (IParameterConfiguration)optimizable; 498 if (this.ActualValueConfigurationIndex == other.ActualValueConfigurationIndex) { 499 return this.ValueConfigurations[this.ActualValueConfigurationIndex].CalculateSimilarity(other.ValueConfigurations[other.ActualValueConfigurationIndex]); 500 } else { 501 return 0.0; 502 } 503 } 495 504 } 496 505 }
Note: See TracChangeset
for help on using the changeset viewer.