Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
07/27/10 14:36:27 (14 years ago)
Author:
gkronber
Message:

Fixed some bugs in multi-variate regression classes. #1089

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/sources/HeuristicLab.Problems.DataAnalysis.MultiVariate.Regression/3.3/Symbolic/SymbolicVectorRegressionSolutionLinearScaler.cs

    r4068 r4112  
    6868      DoubleArray beta = BetaParameter.ActualValue;
    6969      if (alpha != null && beta != null) {
    70         ScaledSymbolicExpressionTreeParameter.ActualValue = Scale(tree, alpha.ToArray(), beta.ToArray());
     70        ScaledSymbolicExpressionTreeParameter.ActualValue = Scale(tree, beta.ToArray(), alpha.ToArray());
    7171      } else {
    7272        // alpha or beta parameter not available => do not scale tree
     
    7777    }
    7878
    79     public static SymbolicExpressionTree Scale(SymbolicExpressionTree original, double[] alpha, double[] beta) {
     79    public static SymbolicExpressionTree Scale(SymbolicExpressionTree original, double[] beta, double[] alpha) {
    8080      List<SymbolicExpressionTreeNode> resultProducingBranches = new List<SymbolicExpressionTreeNode>(original.Root.SubTrees[0].SubTrees);
    8181      // remove the main branch before cloning to prevent cloning of sub-trees
Note: See TracChangeset for help on using the changeset viewer.