Changeset 18129 for branches/3140_NumberSymbol/HeuristicLab.Problems.DataAnalysis.Symbolic/3.4/Grammars
- Timestamp:
- 12/15/21 11:35:23 (3 years ago)
- 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 53 53 number.MaxValue = 20; 54 54 var constant = new Constant(); 55 constant.Enabled = false; 55 56 var variableSymbol = new HeuristicLab.Problems.DataAnalysis.Symbolic.Variable(); 56 57 var binFactorVariableSymbol = new BinaryFactorVariable(); -
branches/3140_NumberSymbol/HeuristicLab.Problems.DataAnalysis.Symbolic/3.4/Grammars/FullFunctionalExpressionGrammar.cs
r18115 r18129 131 131 132 132 var constant = new Constant(); 133 constant.Enabled = false; 133 134 134 135 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 70 70 number.MaxValue = 20; 71 71 var constant = new Constant(); 72 constant.Enabled = false; 72 73 var variableSymbol = new Variable(); 73 74 -
branches/3140_NumberSymbol/HeuristicLab.Problems.DataAnalysis.Symbolic/3.4/Grammars/TypeCoherentExpressionGrammar.cs
r18121 r18129 109 109 number.MaxValue = 20; 110 110 var constant = new Constant(); 111 constant.Enabled = false; 111 112 var variableSymbol = new Variable(); 112 113 var binFactorVariable = new BinaryFactorVariable(); … … 195 196 AddAllowedChildSymbol(powerSymbols, autoregressiveVariable, 0); 196 197 AddAllowedChildSymbol(powerSymbols, number, 1); 198 AddAllowedChildSymbol(powerSymbols, constant, 1); 197 199 198 200 AddAllowedChildSymbol(square, realValuedSymbols, 0); … … 250 252 Symbols.First(s => s.Name == ConditionalSymbolsName).Enabled = false; 251 253 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; 253 255 } 254 256 … … 264 266 Symbols.First(s => s.Name == PowerFunctionsName).Enabled = false; 265 267 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; 267 269 } 268 270 … … 281 283 Symbols.First(s => s is Integral).Enabled = false; 282 284 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; 284 286 } 285 287 }
Note: See TracChangeset
for help on using the changeset viewer.