Changeset 9352 for branches/LearningClassifierSystems/HeuristicLab.Encodings.DecisionList/3.3/Crossover
- Timestamp:
- 04/10/13 15:15:13 (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/LearningClassifierSystems/HeuristicLab.Encodings.DecisionList/3.3/Crossover/SinglePointCrossover.cs
r9342 r9352 48 48 49 49 public static DecisionList Apply(IRandom random, DecisionList parent1, DecisionList parent2) { 50 if (!parent1.DefaultAction.Match(parent2.DefaultAction)) { throw new ArgumentException("Default action of parents have to match!"); } 51 50 52 int rulesP1 = random.Next(0, parent1.Rules.Count()); 51 53 int rulesP2 = random.Next(0, parent2.Rules.Count());
Note: See TracChangeset
for help on using the changeset viewer.