HRVKit
HRV Analysis Library for iOS

HRVKit (libHRVKit) is an iOS static library for performing heart rate variability analysis on heart rate interval (R-R) data. It is highly optimized, validated, thread-safe, and suitable for continous HRV monitoring using an iOS device. The main workhorse is the HRVAnalysis class which accepts R-R intervals (in seconds) and performs all necessary calculations. These include:
Time-based statistics include:
Frequency-based measures include:
These results are encapsulated within the HRVResults class which is broadcast via NSNotificationCenter as accumulated R-R intervals are processed. In a typical, continuous monitoring scenario, the first HRVResult will be broadcast following a 64 second initialization. Subsequent broadcasts will be performed every 3 seconds. In addition, an instantaneous HRVResult can be calculated using the accumulated results up to that point. This is more suitable for a one-off calculation in which R-R data is provided all at once and then a single result is required.