Changeset 15944 for branches/2915-AbsoluteSymbol/HeuristicLab.Problems.DataAnalysis.Symbolic/3.4/Interpreter
- Timestamp:
- 05/23/18 07:13:05 (7 years ago)
- Location:
- branches/2915-AbsoluteSymbol/HeuristicLab.Problems.DataAnalysis.Symbolic/3.4/Interpreter
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/2915-AbsoluteSymbol/HeuristicLab.Problems.DataAnalysis.Symbolic/3.4/Interpreter/OpCodes.cs
r15583 r15944 85 85 public const byte FactorVariable = 46; 86 86 public const byte BinaryFactorVariable = 47; 87 public const byte Absolute = 48; 87 88 88 89 … … 113 114 { typeof(Power),OpCodes.Power}, 114 115 { typeof(Root),OpCodes.Root}, 115 { typeof(TimeLag), OpCodes.TimeLag}, 116 { typeof(TimeLag), OpCodes.TimeLag}, 116 117 { typeof(Integral), OpCodes.Integral}, 117 118 { typeof(Derivative), OpCodes.Derivative}, … … 135 136 { typeof(Bessel), OpCodes.Bessel}, 136 137 { typeof(FactorVariable), OpCodes.FactorVariable }, 137 { typeof(BinaryFactorVariable), OpCodes.BinaryFactorVariable } 138 { typeof(BinaryFactorVariable), OpCodes.BinaryFactorVariable }, 139 {typeof(Absolute), OpCodes.Absolute } 138 140 }; 139 141 -
branches/2915-AbsoluteSymbol/HeuristicLab.Problems.DataAnalysis.Symbolic/3.4/Interpreter/SymbolicDataAnalysisExpressionTreeInterpreter.cs
r15583 r15944 203 203 return sum / currentInstr.nArguments; 204 204 } 205 case OpCodes.Absolute: { 206 return Math.Abs(Evaluate(dataset, ref row, state)); 207 } 205 208 case OpCodes.Cos: { 206 209 return Math.Cos(Evaluate(dataset, ref row, state)); -
branches/2915-AbsoluteSymbol/HeuristicLab.Problems.DataAnalysis.Symbolic/3.4/Interpreter/SymbolicDataAnalysisExpressionTreeLinearInterpreter.cs
r15583 r15944 221 221 } 222 222 instr.value = s / instr.nArguments; 223 } else if (instr.opCode == OpCodes.Absolute) { 224 instr.value = Math.Abs(code[instr.childIndex].value); 223 225 } else if (instr.opCode == OpCodes.Cos) { 224 226 instr.value = Math.Cos(code[instr.childIndex].value);
Note: See TracChangeset
for help on using the changeset viewer.