Free cookie consent management tool by TermsFeed Policy Generator

Changeset 11827 for trunk/sources


Ignore:
Timestamp:
01/27/15 10:41:11 (10 years ago)
Author:
bburlacu
Message:

#2098: Fixed bug when exporting VariableCondition formulas in the SymbolicDataAnalysisExpressionExcelFormatter

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/sources/HeuristicLab.Problems.DataAnalysis.Symbolic/3.4/Formatters/SymbolicDataAnalysisExpressionExcelFormatter.cs

    r11523 r11827  
    215215        double threshold = variableConditionTreeNode.Threshold;
    216216        double slope = variableConditionTreeNode.Slope;
    217         string p = "(1 / (1 + EXP(-" + slope.ToString(CultureInfo.InvariantCulture) + "* (" + GetColumnToVariableName(variableConditionTreeNode.VariableName) + "-" + threshold.ToString(CultureInfo.InvariantCulture) + "))))";
    218         stringBuilder.Append("INT((");
     217        string p = "(1 / (1 + EXP(-" + slope.ToString(CultureInfo.InvariantCulture) + " * (" + GetColumnToVariableName(variableConditionTreeNode.VariableName) + "-" + threshold.ToString(CultureInfo.InvariantCulture) + "))))";
     218        stringBuilder.Append("((");
    219219        stringBuilder.Append(FormatRecursively(node.GetSubtree(0)));
    220220        stringBuilder.Append("*");
Note: See TracChangeset for help on using the changeset viewer.