Changeset 16375 for branches/2866_SymRegHyperbolicFunctions/HeuristicLab.Problems.DataAnalysis.Symbolic/3.4/Interpreter
- Timestamp:
- 12/12/18 16:11:30 (6 years ago)
- Location:
- branches/2866_SymRegHyperbolicFunctions
- Files:
-
- 1 added
- 3 edited
- 1 copied
Legend:
- Unmodified
- Added
- Removed
-
branches/2866_SymRegHyperbolicFunctions/HeuristicLab.Problems.DataAnalysis.Symbolic/3.4/Interpreter/OpCodes.cs
r16360 r16375 90 90 public const byte CubeRoot = 51; 91 91 92 public const byte Tanh = 52; 93 92 94 93 95 private static Dictionary<Type, byte> symbolToOpcode = new Dictionary<Type, byte>() { … … 99 101 { typeof(Cosine), OpCodes.Cos }, 100 102 { typeof(Tangent), OpCodes.Tan }, 103 { typeof (HyperbolicTangent), OpCodes.Tanh}, 101 104 { typeof(Logarithm), OpCodes.Log }, 102 105 { typeof(Exponential), OpCodes.Exp }, -
branches/2866_SymRegHyperbolicFunctions/HeuristicLab.Problems.DataAnalysis.Symbolic/3.4/Interpreter/SymbolicDataAnalysisExpressionTreeInterpreter.cs
r16360 r16375 206 206 return Math.Abs(Evaluate(dataset, ref row, state)); 207 207 } 208 case OpCodes.Tanh: { 209 return Math.Tanh(Evaluate(dataset, ref row, state)); 210 } 208 211 case OpCodes.Cos: { 209 212 return Math.Cos(Evaluate(dataset, ref row, state)); -
branches/2866_SymRegHyperbolicFunctions/HeuristicLab.Problems.DataAnalysis.Symbolic/3.4/Interpreter/SymbolicDataAnalysisExpressionTreeLinearInterpreter.cs
r16360 r16375 227 227 } else if (instr.opCode == OpCodes.Absolute) { 228 228 instr.value = Math.Abs(code[instr.childIndex].value); 229 } else if (instr.opCode == OpCodes.Tanh) { 230 instr.value = Math.Tanh(code[instr.childIndex].value); 229 231 } else if (instr.opCode == OpCodes.Cos) { 230 232 instr.value = Math.Cos(code[instr.childIndex].value);
Note: See TracChangeset
for help on using the changeset viewer.