Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
12/15/21 11:35:23 (3 years ago)
Author:
gkronber
Message:

#3140: updated grammars again to use number instead of constant (fixing a bug I introduced earlier) and updated samples again.

Location:
branches/3140_NumberSymbol/HeuristicLab.Problems.DataAnalysis.Symbolic/3.4/Grammars
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • branches/3140_NumberSymbol/HeuristicLab.Problems.DataAnalysis.Symbolic/3.4/Grammars/ArithmeticExpressionGrammar.cs

    r18115 r18129  
    5353      number.MaxValue = 20;
    5454      var constant = new Constant();
     55      constant.Enabled = false;
    5556      var variableSymbol = new HeuristicLab.Problems.DataAnalysis.Symbolic.Variable();
    5657      var binFactorVariableSymbol = new BinaryFactorVariable();
  • branches/3140_NumberSymbol/HeuristicLab.Problems.DataAnalysis.Symbolic/3.4/Grammars/FullFunctionalExpressionGrammar.cs

    r18115 r18129  
    131131
    132132      var constant = new Constant();
     133      constant.Enabled = false;
    133134
    134135      var allSymbols = new List<Symbol>() { add, sub, mul, div, aq, mean, abs, sin, cos, tan, log, square, cube, pow, sqrt, cubeRoot, root, exp, tanh,
  • branches/3140_NumberSymbol/HeuristicLab.Problems.DataAnalysis.Symbolic/3.4/Grammars/LinearScalingGrammar.cs

    r18116 r18129  
    7070      number.MaxValue = 20;
    7171      var constant = new Constant();
     72      constant.Enabled = false;
    7273      var variableSymbol = new Variable();
    7374
  • branches/3140_NumberSymbol/HeuristicLab.Problems.DataAnalysis.Symbolic/3.4/Grammars/TypeCoherentExpressionGrammar.cs

    r18121 r18129  
    109109      number.MaxValue = 20;
    110110      var constant = new Constant();
     111      constant.Enabled = false;
    111112      var variableSymbol = new Variable();
    112113      var binFactorVariable = new BinaryFactorVariable();
     
    195196      AddAllowedChildSymbol(powerSymbols, autoregressiveVariable, 0);
    196197      AddAllowedChildSymbol(powerSymbols, number, 1);
     198      AddAllowedChildSymbol(powerSymbols, constant, 1);
    197199
    198200      AddAllowedChildSymbol(square, realValuedSymbols, 0);
     
    250252      Symbols.First(s => s.Name == ConditionalSymbolsName).Enabled = false;
    251253      Symbols.First(s => s.Name == TimeSeriesSymbolsName).Enabled = false;
    252       Symbols.First(s => s is Number).Enabled = false;
     254      Symbols.First(s => s is Constant).Enabled = false;
    253255    }
    254256
     
    264266      Symbols.First(s => s.Name == PowerFunctionsName).Enabled = false;
    265267      Symbols.First(s => s.Name == TimeSeriesSymbolsName).Enabled = false;
    266       Symbols.First(s => s is Number).Enabled = false;
     268      Symbols.First(s => s is Constant).Enabled = false;
    267269    }
    268270
     
    281283      Symbols.First(s => s is Integral).Enabled = false;
    282284      Symbols.First(s => s is TimeLag).Enabled = false;
    283       Symbols.First(s => s is Number).Enabled = false;
     285      Symbols.First(s => s is Constant).Enabled = false;
    284286    }
    285287  }
Note: See TracChangeset for help on using the changeset viewer.