- Timestamp:
- 11/18/21 15:55:41 (3 years ago)
- Location:
- branches/3136_Structural_GP/HeuristicLab.Problems.DataAnalysis.Symbolic/3.4
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/3136_Structural_GP/HeuristicLab.Problems.DataAnalysis.Symbolic/3.4/Converters/DerivativeCalculator.cs
r17902 r18084 197 197 var tanh = (ISymbolicExpressionTreeNode)branch.Clone(); 198 198 return Product(fxp, Subtract(CreateConstant(1.0), Square(tanh))); 199 } 200 if (branch.Symbol is SubFunctionSymbol) { 201 return Derive(branch.GetSubtree(0), variableName); 199 202 } 200 203 throw new NotSupportedException(string.Format("Symbol {0} is not supported.", branch.Symbol)); … … 282 285 !(n.Symbol is Cosine) && 283 286 !(n.Symbol is Tangent) && 284 !(n.Symbol is StartSymbol) 287 !(n.Symbol is StartSymbol) && 288 !(n.Symbol is SubFunctionSymbol) 285 289 select n).Any(); 286 290 return !containsUnknownSymbol; -
branches/3136_Structural_GP/HeuristicLab.Problems.DataAnalysis.Symbolic/3.4/Interpreter/IntervalArithBoundsEstimator.cs
r17964 r18084 247 247 248 248 break; 249 } 250 case OpCodes.SubFunction: { 251 result = Evaluate(instructions, ref instructionCounter, nodeIntervals, variableIntervals); 252 break; 249 253 } 250 254 default: … … 342 346 !(n.Symbol is Power) && 343 347 !(n.Symbol is Absolute) && 344 !(n.Symbol is AnalyticQuotient) 348 !(n.Symbol is AnalyticQuotient) && 349 !(n.Symbol is SubFunctionSymbol) 345 350 select n).Any(); 346 351 return !containsUnknownSymbols;
Note: See TracChangeset
for help on using the changeset viewer.