Adds the option to use stepwise regression when fitting polynomial coefficients in PolynomialPathFitter. This approach fits polynomials using individual terms one at a time and keeps the terms that result in the lowest fitting error. Terms (and coefficients) are added until the path length and moment arm tolerances are achieved.
One key change was made to MultivariatePolynomialFunction: coefficients equal to zero are now ignored when evaluating polynomial functions to maximize speed.
Testing I've completed
Ran Matlab and Python scripting examples, examplePolynomialPathFitter.m/py.
Updated the FunctionBasedPath set used in exampleMocoInverse and exampleMocoTrack and ran both examples.
Fixes issue #3761
[perf-win]
Brief summary of changes
Adds the option to use stepwise regression when fitting polynomial coefficients in
PolynomialPathFitter
. This approach fits polynomials using individual terms one at a time and keeps the terms that result in the lowest fitting error. Terms (and coefficients) are added until the path length and moment arm tolerances are achieved.One key change was made to
MultivariatePolynomialFunction
: coefficients equal to zero are now ignored when evaluating polynomial functions to maximize speed.Testing I've completed
examplePolynomialPathFitter.m/py
.FunctionBasedPath
set used inexampleMocoInverse
andexampleMocoTrack
and ran both examples.Looking for feedback on...
CHANGELOG.md (choose one)
Performance analysis
Platform: Windows, self-hosted runner
This change is