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