Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
08/08/16 13:00:06 (8 years ago)
Author:
gkronber
Message:

#2650: renamed FactorVariable -> BinaryFactorVariable

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/symbreg-factors-2650/HeuristicLab.Problems.DataAnalysis.Symbolic.Regression/3.4/SingleObjective/Evaluators/SymbolicRegressionConstantOptimizationEvaluator.cs

    r14237 r14243  
    205205          ConstantTreeNode constantTreeNode = node as ConstantTreeNode;
    206206          VariableTreeNode variableTreeNode = node as VariableTreeNode;
    207           FactorVariableTreeNode factorVariableTreeNode = node as FactorVariableTreeNode;
     207          BinaryFactorVariableTreeNode factorVariableTreeNode = node as BinaryFactorVariableTreeNode;
    208208          if (constantTreeNode != null)
    209209            c[i++] = constantTreeNode.Value;
     
    273273        ConstantTreeNode constantTreeNode = node as ConstantTreeNode;
    274274        VariableTreeNode variableTreeNode = node as VariableTreeNode;
    275         FactorVariableTreeNode factorVarTreeNode = node as FactorVariableTreeNode;
     275        BinaryFactorVariableTreeNode factorVarTreeNode = node as BinaryFactorVariableTreeNode;
    276276        if (constantTreeNode != null)
    277277          constantTreeNode.Value = constants[i++];
     
    305305        return true;
    306306      }
    307       if (node.Symbol is Variable || node.Symbol is FactorVariable) {
     307      if (node.Symbol is Variable || node.Symbol is BinaryFactorVariable) {
    308308        var varNode = node as VariableTreeNodeBase;
    309         var factorVarNode = node as FactorVariableTreeNode;
     309        var factorVarNode = node as BinaryFactorVariableTreeNode;
    310310        // factor variable values are only 0 or 1 and set in x accordingly
    311311        var par = new AutoDiff.Variable();
     
    493493        where
    494494         !(n.Symbol is Variable) &&
    495          !(n.Symbol is FactorVariable) &&
     495         !(n.Symbol is BinaryFactorVariable) &&
    496496         !(n.Symbol is Constant) &&
    497497         !(n.Symbol is Addition) &&
Note: See TracChangeset for help on using the changeset viewer.