Skip to content

include online DMD, window DMD#5

Open
haozhg wants to merge 34 commits into
cwrowley:masterfrom
haozhg:master
Open

include online DMD, window DMD#5
haozhg wants to merge 34 commits into
cwrowley:masterfrom
haozhg:master

Conversation

@haozhg

@haozhg haozhg commented Apr 25, 2017

Copy link
Copy Markdown

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

@cwrowley

Copy link
Copy Markdown
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

haozhg commented May 13, 2017

Copy link
Copy Markdown
Author

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

Comment thread matlab/OnlineDMD.m Outdated
% Usage: odmd.update(x, y)

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

Copy link
Copy Markdown
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
Copy Markdown
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