Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Speed ups to the Octave inverse dynamics. #129

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

moorepants
Copy link
Member

No description provided.

This should be faster, hopefully it makes a significant difference.  I have not tested this code (sorry) but it's no more than putting the code from rtfilter.m in the for loop in myfiltfilt.m.

It would be good to try this version in Python too.
Is no longer needed.
@moorepants
Copy link
Member Author

@tvdbogert I just opened this pull request for your branch. I'll test it out and see what the speed gains are for our real data.

@moorepants
Copy link
Member Author

FYI, this change doesn't pass the tests anymore. The "Details" links in the "Merge pull request" box give the errors:

https://travis-ci.org/csu-hmc/GaitAnalysisToolKit/builds/56442391

I'll debug it unless you want to.

F = 4*h*a/denom;
y(i) = A*y(i-1) + B*yd(i-1) + E*(x(i)+x(i-1))/2;
yd(i) = C*y(i-1) + D*yd(i-1) + F*(x(i)+x(i-1))/2;
ydd = (yd(i)-yd(i-1))/h;
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should be ydd(i). I'll push the fix.

@moorepants moorepants closed this Jun 20, 2021
@moorepants moorepants reopened this Jun 20, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants