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

Location:
trunk/sources/HeuristicLab.Problems.DataAnalysis.Symbolic/3.4/Symbols
Files:
2 edited

Legend:

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

    r6803 r7671  
    2929namespace HeuristicLab.Problems.DataAnalysis.Symbolic {
    3030  [StorableClass]
    31   [Item("Variable Condition", "Represents a condition that tests a given variable.")]
     31  [Item("Variable Condition", "Represents a condition that tests a given variable against a specified threshold.")]
    3232  public sealed class VariableCondition : Symbol {
    3333    #region properties
     
    182182      variableNames = new List<string>();
    183183
    184       slopeInitializerMu = 1.0;
    185       slopeInitializerSigma = 0.05;
     184      slopeInitializerMu = 0.0;
     185      slopeInitializerSigma = 0.0;
    186186      slopeManipulatorMu = 0.0;
    187       slopeManipulatorSigma = 0.05;
     187      slopeManipulatorSigma = 0.0;
    188188    }
    189189
  • 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.