yasa icon indicating copy to clipboard operation
yasa copied to clipboard

Question about REM density

Open laura-hainke opened this issue 1 year ago • 3 comments

Hello, how is rapid eye movement density calculated with YASA? After using rem_detect() and summary(), the parameter "Density" is shown, but what is the unit? Thank you!

laura-hainke avatar Jul 03 '24 09:07 laura-hainke

Hi @laura-hainke,

The density parameter is the number of events per minute:

https://github.com/raphaelvallat/yasa/blob/b1e866c2d949dae2c37bda7d919d646e0f1e9780/yasa/detection.py#L220-L233

Thanks, Raphael

raphaelvallat avatar Jul 04 '24 18:07 raphaelvallat

Thanks for clarifying, Raphael!

laura-hainke avatar Jul 08 '24 05:07 laura-hainke

Probably worth adding this quickly to the documentation before closing the issue. (I'll do it.)

remrama avatar Oct 07 '24 22:10 remrama