- Timestamp:
- 11/21/17 15:40:19 (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/sources/HeuristicLab.Problems.DataAnalysis.Symbolic/3.4/Converters/TreeToAutoDiffTermConverter.cs
r15480 r15481 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 // scaling variables α, β are given at the beginning of the parameter vector 255 254 var alpha = new AutoDiff.Variable(); 256 255 var beta = new AutoDiff.Variable(); 257 256 variables.Add(beta); 258 257 variables.Add(alpha); 258 var t = ConvertToAutoDiff(node.GetSubtree(0)); 259 259 return t * alpha + beta; 260 260 } else return ConvertToAutoDiff(node.GetSubtree(0));
Note: See TracChangeset
for help on using the changeset viewer.