Changeset 15944 for branches/2915-AbsoluteSymbol/HeuristicLab.Problems.DataAnalysis.Symbolic/3.4/Grammars
- Timestamp:
- 05/23/18 07:13:05 (7 years ago)
- Location:
- branches/2915-AbsoluteSymbol/HeuristicLab.Problems.DataAnalysis.Symbolic/3.4/Grammars
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/2915-AbsoluteSymbol/HeuristicLab.Problems.DataAnalysis.Symbolic/3.4/Grammars/FullFunctionalExpressionGrammar.cs
r15583 r15944 53 53 var tan = new Tangent(); 54 54 var log = new Logarithm(); 55 var abs = new Absolute(); 55 56 var pow = new Power(); 56 57 pow.InitialFrequency = 0.0; … … 123 124 autoregressiveVariable.Enabled = false; 124 125 125 var allSymbols = new List<Symbol>() { add, sub, mul, div, mean, sin, cos, tan, log, square, pow, sqrt, root, exp,126 var allSymbols = new List<Symbol>() { add, sub, mul, div, mean, abs, sin, cos, tan, log, square, pow, sqrt, root, exp, 126 127 airyA, airyB, bessel, cosineIntegral, dawson, erf, expIntegralEi, fresnelCosineIntegral, fresnelSineIntegral, gamma, hypCosineIntegral, hypSineIntegral, norm, psi, sineIntegral, 127 128 @if, gt, lt, and, or, not,xor, timeLag, integral, derivative, constant, variableSymbol, binFactorVariable, factorVariable, laggedVariable,autoregressiveVariable, variableCondition }; 128 var unaryFunctionSymbols = new List<Symbol>() { square, sqrt, sin, cos, tan, log, exp, not, timeLag, integral, derivative,129 var unaryFunctionSymbols = new List<Symbol>() { abs, square, sqrt, sin, cos, tan, log, exp, not, timeLag, integral, derivative, 129 130 airyA, airyB, bessel, cosineIntegral, dawson, erf, expIntegralEi, fresnelCosineIntegral, fresnelSineIntegral, gamma, hypCosineIntegral, hypSineIntegral, norm, psi, sineIntegral 130 131 }; -
branches/2915-AbsoluteSymbol/HeuristicLab.Problems.DataAnalysis.Symbolic/3.4/Grammars/TypeCoherentExpressionGrammar.cs
r15583 r15944 70 70 var sqrt = new SquareRoot(); 71 71 var exp = new Exponential(); 72 var abs = new Absolute(); 72 73 73 74 var airyA = new AiryA(); … … 111 112 112 113 #region group symbol declaration 113 var arithmeticSymbols = new GroupSymbol(ArithmeticFunctionsName, new List<ISymbol>() { add, sub, mul, div, mean });114 var arithmeticSymbols = new GroupSymbol(ArithmeticFunctionsName, new List<ISymbol>() { add, sub, mul, div, mean, abs }); 114 115 var trigonometricSymbols = new GroupSymbol(TrigonometricFunctionsName, new List<ISymbol>() { sin, cos, tan }); 115 116 var exponentialAndLogarithmicSymbols = new GroupSymbol(ExponentialFunctionsName, new List<ISymbol> { exp, log }); … … 231 232 public void ConfigureAsDefaultRegressionGrammar() { 232 233 Symbols.First(s => s is Average).Enabled = false; 234 Symbols.First(s => s is Absolute).Enabled = false; 233 235 Symbols.First(s => s.Name == TrigonometricFunctionsName).Enabled = false; 234 236 Symbols.First(s => s.Name == PowerFunctionsName).Enabled = false; … … 242 244 Symbols.First(s => s is VariableCondition).Enabled = false; 243 245 Symbols.First(s => s is Xor).Enabled = false; 246 Symbols.First(s => s is Absolute).Enabled = false; 244 247 Symbols.First(s => s.Name == TrigonometricFunctionsName).Enabled = false; 245 248 Symbols.First(s => s.Name == ExponentialFunctionsName).Enabled = false; … … 251 254 public void ConfigureAsDefaultTimeSeriesPrognosisGrammar() { 252 255 Symbols.First(s => s is Average).Enabled = false; 256 Symbols.First(s => s is Absolute).Enabled = false; 253 257 Symbols.First(s => s.Name == TrigonometricFunctionsName).Enabled = false; 254 258 Symbols.First(s => s.Name == PowerFunctionsName).Enabled = false;
Note: See TracChangeset
for help on using the changeset viewer.