heartcv.bpm

heartcv.bpm(num_peaks, sample_length, fs)[source]

Calculate beats per minute based on detected peaks.

Parameters
  • num_peaks (int or float) – Number of peaks detected.

  • sample_length (int or float) – Length of time-series data.

  • fs (int or float) – Sampling frequency of footage.

Returns

bpm – Beats per minute.

Return type

int or float