Changeset 2202 for branches/GP-Refactoring-713/sources/HeuristicLab.GP.StructureIdentification/3.3/Power.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/Power.cs
r1529 r2202 29 29 30 30 namespace HeuristicLab.GP.StructureIdentification { 31 public sealed class Power : FunctionBase{31 public sealed class Power : BinaryFunction { 32 32 public override string Description { 33 33 get { return "Returns the result of the first sub-tree to the power of the second sub-tree (power(x, y))."; } … … 36 36 public Power() 37 37 : base() { 38 // must have exactly 2 suboperators base ^ exponent39 AddConstraint(new NumberOfSubOperatorsConstraint(2, 2));40 AddConstraint(new SubOperatorTypeConstraint(0));41 AddConstraint(new SubOperatorTypeConstraint(1));42 38 } 43 39 }
Note: See TracChangeset
for help on using the changeset viewer.