HRinst module

HRinst.HRinst(dataset, secperunit=60, peak_threshold=0.5)[source]

Takes the input data of the time and voltage to convert it into an array with time and instantaneous heart rate.

Parameters:
  • dataset – (tuple) Two elements, each a 1xN ndarray for time and voltage values respectively
  • secperunit – (int or double) Conversion from unit of time ndarray to seconds
  • peak_threshold – (double) percentage of maximum peak to set thresholding
Returns:

(ndarray) 2 columns. First column with time in s, second column with heart rate in BPM. Each element in the ndarray is a float.