raspearsy / bme590hrm

MIT License
2 stars 1 forks source link

Create output fxn that works with analysis fxns #3

Closed jkhani closed 7 years ago

jkhani commented 7 years ago

Inputs: Option 1

  1. instHR (int) output from function providing instantaneous heartrate rounded to nearest BPM
  2. avgHR (int) output from function providing average heartrate rounded to nearest BPM
  3. brady (int or array) output from function determining seconds when bradycardia is determined
  4. tachy (int or array) output from function determining seconds when tachycardia is determined

Option 2

  1. ecgAnalysis (array) output from ECG analysis functions arranged into a single array

Output:

  1. ecgAnalysis (.txt file) text file which summarizes the results from the ECG analysis

Need to ensure output fxn works with the ECG analysis

Need to ensure script meets specs below: In a text output file, your program should save: ∗Estimated instantaneous heart rate. ∗Estimated average heart rate over a user-specified number of minutes. ∗Indicate when brady- or tachycardia occured in the ECG trace.