Changeset 18093 for branches/3140_NumberSymbol/HeuristicLab.Problems.DataAnalysis.Symbolic.Regression.Views/3.4/SymbolicRegressionSolutionResponseFunctionView.cs
- Timestamp:
- 11/24/21 13:40:39 (3 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/3140_NumberSymbol/HeuristicLab.Problems.DataAnalysis.Symbolic.Regression.Views/3.4/SymbolicRegressionSolutionResponseFunctionView.cs
r17180 r18093 120 120 121 121 private void ChangeVariableValue(string variableName, double value) { 122 foreach (var constNode in variableNodes[variableName].Cast< ConstantTreeNode>())122 foreach (var constNode in variableNodes[variableName].Cast<NumTreeNode>()) 123 123 constNode.Value = value; 124 124 … … 223 223 } 224 224 225 private ISymbolicExpressionTreeNode MakeProduct( ConstantTreeNode c, double weight) {225 private ISymbolicExpressionTreeNode MakeProduct(NumTreeNode c, double weight) { 226 226 var mul = new Multiplication(); 227 227 var prod = mul.CreateTreeNode(); … … 231 231 } 232 232 233 private ConstantTreeNode MakeConstantTreeNode(double value) {234 Constant constant = new Constant();235 constant.MinValue = value - 1;236 constant.MaxValue = value + 1;237 ConstantTreeNode constantTreeNode = (ConstantTreeNode)constant.CreateTreeNode();238 constantTreeNode.Value = value;239 return constantTreeNode;233 private NumTreeNode MakeConstantTreeNode(double value) { 234 Num num = new Num(); 235 num.MinValue = value - 1; 236 num.MaxValue = value + 1; 237 NumTreeNode numTreeNode = (NumTreeNode)num.CreateTreeNode(); 238 numTreeNode.Value = value; 239 return numTreeNode; 240 240 } 241 241 }
Note: See TracChangeset
for help on using the changeset viewer.