Changeset 15131 for stable/HeuristicLab.Problems.DataAnalysis.Symbolic.TimeSeriesPrognosis.Views/3.4
Legend:
- Unmodified
- Added
- Removed
-
stable
- Property svn:mergeinfo changed
-
stable/HeuristicLab.Problems.DataAnalysis.Symbolic.TimeSeriesPrognosis.Views/3.4/InteractiveSymbolicTimeSeriesPrognosisSolutionSimplifierView.cs
r14186 r15131 88 88 } 89 89 90 protected override Dictionary<ISymbolicExpressionTreeNode, double> CalculateReplacementValues(ISymbolicExpressionTree tree) {91 var replacementValues = new Dictionary<ISymbolicExpressionTreeNode, double>();92 foreach (var componentBranch in tree.Root.GetSubtree(0).Subtrees)93 foreach (ISymbolicExpressionTreeNode node in componentBranch.IterateNodesPrefix()) {94 replacementValues[node] = CalculateReplacementValue(node, tree);95 }96 return replacementValues;97 }98 99 protected override Dictionary<ISymbolicExpressionTreeNode, double> CalculateImpactValues(ISymbolicExpressionTree tree) {100 var impactAndReplacementValues = CalculateImpactAndReplacementValues(tree);101 return impactAndReplacementValues.ToDictionary(x => x.Key, x => x.Value.Item1); // item1 of the tuple is the impact value102 }103 104 90 private double CalculateReplacementValue(ISymbolicExpressionTreeNode node, ISymbolicExpressionTree sourceTree) { 105 91 // remove old ADFs
Note: See TracChangeset
for help on using the changeset viewer.