Changeset 4112 for trunk/sources/HeuristicLab.Problems.DataAnalysis.MultiVariate.Regression/3.3/Symbolic/SymbolicVectorRegressionSolutionLinearScaler.cs
- Timestamp:
- 07/27/10 14:36:27 (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/sources/HeuristicLab.Problems.DataAnalysis.MultiVariate.Regression/3.3/Symbolic/SymbolicVectorRegressionSolutionLinearScaler.cs
r4068 r4112 68 68 DoubleArray beta = BetaParameter.ActualValue; 69 69 if (alpha != null && beta != null) { 70 ScaledSymbolicExpressionTreeParameter.ActualValue = Scale(tree, alpha.ToArray(), beta.ToArray());70 ScaledSymbolicExpressionTreeParameter.ActualValue = Scale(tree, beta.ToArray(), alpha.ToArray()); 71 71 } else { 72 72 // alpha or beta parameter not available => do not scale tree … … 77 77 } 78 78 79 public static SymbolicExpressionTree Scale(SymbolicExpressionTree original, double[] alpha, double[] beta) {79 public static SymbolicExpressionTree Scale(SymbolicExpressionTree original, double[] beta, double[] alpha) { 80 80 List<SymbolicExpressionTreeNode> resultProducingBranches = new List<SymbolicExpressionTreeNode>(original.Root.SubTrees[0].SubTrees); 81 81 // remove the main branch before cloning to prevent cloning of sub-trees
Note: See TracChangeset
for help on using the changeset viewer.