-
Notifications
You must be signed in to change notification settings - Fork 29
include online DMD, window DMD #5
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
base: master
Are you sure you want to change the base?
Conversation
|
The online stuff looks great, but please don't reorganize the other files (e.g., streaming, tdmd), at least as a part of this same pull request. Just add online and window for now, and then we can discuss rearranging later if we want. |
|
I have switched back to the original folder structure, and updated the readme file. Online and window implementation are added. |
matlab/OnlineDMD.m
Outdated
| % Usage: odmd.update(x, y) | ||
|
|
||
| % Compute gamma | ||
| gamma = 1/(1+x'*(obj.P*x)); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You are computing P*x four times here; better to compute it once and save it: Px = obj.P * x and then use this in the definition of gamma, and in the updates for obj.A and obj.P. Of course, P is symmetric, so x'*obj.P is the same as Px'
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I have updated the matlab implementation. Now both matlab and python implementation are more efficient, matrix vector multiplication is computed beforehand.
include online DMD, window DMD, reorganize files, update README to clarify files organization structure