This forum uses cookies
This forum makes use of cookies to store your login information if you are registered, and your last visit if you are not. Cookies are small text documents stored on your computer; the cookies set by this forum can only be used on this website and pose no security risk. Cookies on this forum also track the specific topics you have read and when you last read them. Please confirm whether you accept or reject these cookies being set.

A cookie will be stored in your browser regardless of choice to prevent you being asked this question again. You will be able to change your cookie settings at any time using the link in the footer.

How can count amount peak of graph ?
#3
Photo 
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)
   
Reply


Messages In This Thread
RE: How can count amount peak of graph ? - by Newcomer - 11-01-2024, 07:52 AM

Forum Jump: