Changeset 2202 for branches/GP-Refactoring-713/sources/HeuristicLab.GP.StructureIdentification/3.3/Division.cs
- Timestamp:
- 07/28/09 19:24:23 (15 years ago)
- Location:
- branches/GP-Refactoring-713
- Files:
-
- 1 edited
- 1 copied
Legend:
- Unmodified
- Added
- Removed
-
branches/GP-Refactoring-713/sources/HeuristicLab.GP.StructureIdentification/3.3/Division.cs
r2054 r2202 30 30 31 31 namespace HeuristicLab.GP.StructureIdentification { 32 public sealed class Division : FunctionBase { 33 private const double EPSILON = 10.0E-20; // if any divisor is < EPSILON return 0 34 32 public sealed class Division : BinaryFunction { 35 33 public override string Description { 36 34 get { … … 46 44 } 47 45 48 public Division() 49 : base() { 50 // 2 - 3 seems like an reasonable defaut (used for +,-,*,/) (discussion with swinkler and maffenze) 51 //MK changed to only 2 allowed suboperators to be compliant with HL2 52 AddConstraint(new NumberOfSubOperatorsConstraint(2, 2)); 53 AddConstraint(new SubOperatorTypeConstraint(0)); 54 AddConstraint(new SubOperatorTypeConstraint(1)); 55 } 46 public Division() : base() { } 56 47 } 57 48 }
Note: See TracChangeset
for help on using the changeset viewer.