Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
11/21/17 15:40:19 (7 years ago)
Author:
gkronber
Message:

#2852: reverted changeset r15480 partially to fix unit test

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/sources/HeuristicLab.Problems.DataAnalysis.Symbolic/3.4/Converters/TreeToAutoDiffTermConverter.cs

    r15480 r15481  
    251251      if (node.Symbol is StartSymbol) {
    252252        if (addLinearScalingTerms) {
    253           var t = ConvertToAutoDiff(node.GetSubtree(0));
    254           // scaling variables α, β are given at the end of the parameter vector
     253          // scaling variables α, β are given at the beginning of the parameter vector
    255254          var alpha = new AutoDiff.Variable();
    256255          var beta = new AutoDiff.Variable();
    257256          variables.Add(beta);
    258257          variables.Add(alpha);
     258          var t = ConvertToAutoDiff(node.GetSubtree(0));
    259259          return t * alpha + beta;
    260260        } else return ConvertToAutoDiff(node.GetSubtree(0));
Note: See TracChangeset for help on using the changeset viewer.