Changeset 6038 for branches/HeuristicLab.MetaOptimization/HeuristicLab.Problems.MetaOptimization/3.3/Operators/Crossovers/DoubleValue
- Timestamp:
- 04/22/11 10:56:48 (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/HeuristicLab.MetaOptimization/HeuristicLab.Problems.MetaOptimization/3.3/Operators/Crossovers/DoubleValue/NormalDoubleValueCrossover.cs
r6017 r6038 1 1 using System; 2 using System.Collections.Generic;3 using System.Linq;4 using System.Text;2 using HeuristicLab.Common; 3 using HeuristicLab.Core; 4 using HeuristicLab.Data; 5 5 using HeuristicLab.Operators; 6 6 using HeuristicLab.Optimization; 7 using HeuristicLab.Parameters; 7 8 using HeuristicLab.Persistence.Default.CompositeSerializers.Storable; 8 using HeuristicLab.Core;9 using HeuristicLab.Parameters;10 using HeuristicLab.Common;11 using HeuristicLab.Data;12 9 using HeuristicLab.Random; 13 10 … … 19 16 } 20 17 21 public NormalDoubleValueCrossover() : base() { 18 public NormalDoubleValueCrossover() 19 : base() { 22 20 } 23 21 [StorableConstructor] … … 35 33 36 34 public static DoubleValue ApplyStatic(IRandom random, DoubleValue better, DoubleValue worse, DoubleValueRange range) { 37 NormalDistributedRandom N = new NormalDistributedRandom(random, better.Value, Math.Abs(better.Value - worse.Value) );35 NormalDistributedRandom N = new NormalDistributedRandom(random, better.Value, Math.Abs(better.Value - worse.Value) / 3); 38 36 var offspring = new DoubleValue(); 39 37 do {
Note: See TracChangeset
for help on using the changeset viewer.