- Timestamp:
- 11/20/17 20:36:29 (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/sources/HeuristicLab.Problems.DataAnalysis.Symbolic/3.4/Converters/TreeToAutoDiffTermConverter.cs
r15447 r15480 251 251 if (node.Symbol is StartSymbol) { 252 252 if (addLinearScalingTerms) { 253 var t = ConvertToAutoDiff(node.GetSubtree(0)); 254 // scaling variables α, β are given at the end of the parameter vector 253 255 var alpha = new AutoDiff.Variable(); 254 256 var beta = new AutoDiff.Variable(); 255 257 variables.Add(beta); 256 258 variables.Add(alpha); 257 return ConvertToAutoDiff(node.GetSubtree(0))* alpha + beta;259 return t * alpha + beta; 258 260 } else return ConvertToAutoDiff(node.GetSubtree(0)); 259 261 }
Note: See TracChangeset
for help on using the changeset viewer.