-
Notifications
You must be signed in to change notification settings - Fork 92
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
Feature/multitaper psd estimate #417
Feature/multitaper psd estimate #417
Conversation
elephant/spectral.py
Outdated
If None, it will be determined from other parameters. | ||
Default: None. |
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.
Where happens the determination of the peak_resolution from other parameters, if it was 'None'?
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.
If the peak_resolution
is None
, its value does not get derived from the other parameters since it is not needed for the subsequent steps. Only if peak_resolution
is assigned an appropriate value, it is used to determine the time bandwidth product which in turn is used to computed num_tapers
, which controls the peak resolution of the estimate.
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.
Then If None, it will be determined from other parameters.
is quite misleading since it's ambiguous what 'it' refers to
…ephant into feature/multitaper_psd_estimate
Co-authored-by: rjurkus <[email protected]>
sym='False' -> sym=False (boolean parameter) nperseg -> n_per_seg (consistency)
…ad data from the elephant-data repo (using test_spike_train_synchrony.py and test_unitary_event_analysis.py approach) Replaced a large part of test_multitaper_psd_against_nitime docstring with a URL to the elephant-data repo, updated the mentioned nitime version and corrected a typo
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.
Nice feature, thank you for contributing.
This reverts commit d0d3920.
This PR covers the basic implementation of multitaper in Elephant. Tests include a comparison against nitime multitaper. Any feedback is appreciated!
Please note: The test against nitime will fail due to the missing .npy files. Please check if this style of the test is sufficient. If so, the files can be uploaded to the correct location and the test should then pass.