After I tried dissecting the code, it seemed complex and quite error-prone. So now, I'm attempting to do it in my way. Could you review my code and help me why it's not working? The issue seems to be with the if function count = count+1, and I'm wondering how to write it correctly in this style or simiar logic.
acc = input y, acct = input time and idk just need to use append or not
simple logic
count = 0
if y value > threshold(approximately 0.2) => count = count+1
BPM = count*3(measure in 20s)
acc = input y, acct = input time and idk just need to use append or not
simple logic
count = 0
if y value > threshold(approximately 0.2) => count = count+1
BPM = count*3(measure in 20s)