Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
03/30/12 10:17:16 (13 years ago)
Author:
mkommend
Message:

#1722: Minor configurations changes in variable condition symbol

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/sources/HeuristicLab.Problems.DataAnalysis.Symbolic/3.4/Symbols/VariableConditionTreeNode.cs

    r5809 r7671  
    8888
    8989    public override string ToString() {
    90       return variableName + " > " + threshold.ToString("E4") + Environment.NewLine +
    91         "slope: " + slope.ToString("E4");
     90      if (slope.IsAlmost(0.0))
     91        return variableName + " > " + threshold.ToString("E4") + Environment.NewLine +
     92          "slope: " + slope.ToString("E4");
     93      else
     94        return variableName + " > " + threshold.ToString("E4");
    9295    }
    9396  }
Note: See TracChangeset for help on using the changeset viewer.