-
-
Notifications
You must be signed in to change notification settings - Fork 390
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
Add and clarify RSP features #536
Conversation
Codecov Report
@@ Coverage Diff @@
## dev #536 +/- ##
=======================================
Coverage 85.30% 85.30%
=======================================
Files 199 199
Lines 9772 9782 +10
=======================================
+ Hits 8336 8345 +9
- Misses 1436 1437 +1
Continue to review full report at Codecov.
|
@DominiqueMakowski @shanelindsay I've changed all (I think) instances of "inhalation peaks" and "exhalation troughs", to "peaks (exhalation onsets)" and "troughs (inhalation onsets)" respectively in the docstrings. The explicit labelling of onsets is done only in NeuroKit/neurokit2/rsp/rsp_rate.py Lines 24 to 28 in c110438
The latter is independent of the indices but for the former, does it matter whether periods are computed from peaks or troughs? |
orange is peaks or troughs? |
Oops I can't remember but here's a new short example 😄
|
I'd go with throughs, since it's true that a "breathing cycle" would start with inspiration (and hence a through), so it would conceptually make sense to have rsp rate defined as trough to trough. But then this is from the top of my head, I'm sure in papers they talk about how they compute it (in the case of respi belts) |
See https://ieeexplore.ieee.org/abstract/document/7985893 🤔 (and https://www.degruyter.com/document/doi/10.1515/cdbme-2016-0054/html)
|
See https://github.com/neuropsychology/NeuroKit/projects/4#card-67978636 and #528