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

Specgrams #3

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

Specgrams #3

wants to merge 3 commits into from

Conversation

ericcanton
Copy link
Member

This adds a bunch of methods for applying functions to rolling windows on NDList data. That introduced a new type, RollingResult.

This also introduces methods for Fourier analysis: FFTs for NDlist<double> as well as a .spectrogram extension method that takes FFT on a rolling window.

Tests have been added for new stuff, but more complete testing would be nice to add later.

axis = axis % baseArray.nDims;
final slices = [
for (int i = windowSize - 1; i < baseArray.shape[axis]; i = i + step)
NDList._stringIndex(NDIndexResult.from(baseArray),
Copy link
Member Author

Choose a reason for hiding this comment

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

Note: this line requires this class to be in the same file as NDList, so that we can call the private method.

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.

1 participant