Skip to content

newBranch replaced len(ecg)*step with len(ecg)/sample_rate - #11

Open
amir-hri wants to merge 1 commit into
dy1901:masterfrom
amir-hri:newbranch
Open

newBranch replaced len(ecg)*step with len(ecg)/sample_rate#11
amir-hri wants to merge 1 commit into
dy1901:masterfrom
amir-hri:newbranch

Conversation

@amir-hri

Copy link
Copy Markdown

In order to segment an ECG, we need to specify how many cycles we want to segment. Using neurokit2 to get peaks if we choose to segment into 3 cycles, we have to go through each 4 peaks. But for each 3 cycles we get an error. To resolve this error we have to divide len(ecg) by sample_rate instead of multiplying it with 1/sample_rate.

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