Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
07/28/09 19:24:23 (15 years ago)
Author:
gkronber
Message:

Created a branch for #713

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  
    3030
    3131namespace 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 {
    3533    public override string Description {
    3634      get {
     
    4644    }
    4745
    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() { }
    5647  }
    5748}
Note: See TracChangeset for help on using the changeset viewer.