Changeset 16236 for branches/2915-AbsoluteSymbol/HeuristicLab.Problems.DataAnalysis.Symbolic/3.4/Interpreter
- Timestamp:
- 10/18/18 14:42:12 (6 years ago)
- Location:
- branches/2915-AbsoluteSymbol
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/2915-AbsoluteSymbol
- Property svn:mergeinfo changed
/branches/2937_SymReg_AnalyticalQuotient (added) merged: 16083
- Property svn:mergeinfo changed
-
branches/2915-AbsoluteSymbol/HeuristicLab.Problems.DataAnalysis.Symbolic
- Property svn:mergeinfo changed
/branches/2937_SymReg_AnalyticalQuotient/HeuristicLab.Problems.DataAnalysis.Symbolic (added) merged: 16083
- Property svn:mergeinfo changed
-
branches/2915-AbsoluteSymbol/HeuristicLab.Problems.DataAnalysis.Symbolic/3.4/Interpreter/OpCodes.cs
r15944 r16236 86 86 public const byte BinaryFactorVariable = 47; 87 87 public const byte Absolute = 48; 88 public const byte AnalyticalQuotient = 49; 88 89 89 90 … … 137 138 { typeof(FactorVariable), OpCodes.FactorVariable }, 138 139 { typeof(BinaryFactorVariable), OpCodes.BinaryFactorVariable }, 139 {typeof(Absolute), OpCodes.Absolute } 140 { typeof(Absolute), OpCodes.Absolute } 141 { typeof(AnalyticalQuotient), OpCodes.AnalyticalQuotient } 140 142 }; 141 143 -
branches/2915-AbsoluteSymbol/HeuristicLab.Problems.DataAnalysis.Symbolic/3.4/Interpreter/SymbolicDataAnalysisExpressionTreeLinearInterpreter.cs
r15944 r16236 215 215 if (instr.nArguments == 1) p = 1.0 / p; 216 216 instr.value = p; 217 } else if (instr.opCode == OpCodes.AnalyticalQuotient) { 218 var x1 = code[instr.childIndex].value; 219 var x2 = code[instr.childIndex + 1].value; 220 instr.value = x1 / Math.Sqrt(1 + x2 * x2); 217 221 } else if (instr.opCode == OpCodes.Average) { 218 222 double s = code[instr.childIndex].value;
Note: See TracChangeset
for help on using the changeset viewer.