Skip to content

Conversation

@haozhg
Copy link

@haozhg haozhg commented Apr 25, 2017

include online DMD, window DMD, reorganize files, update README to clarify files organization structure

@cwrowley
Copy link
Owner

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.

@haozhg
Copy link
Author

haozhg commented May 13, 2017

I have switched back to the original folder structure, and updated the readme file. Online and window implementation are added.

% Usage: odmd.update(x, y)

% Compute gamma
gamma = 1/(1+x'*(obj.P*x));
Copy link
Owner

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'

Copy link
Author

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants