Structure
Sample
public struct Sample
Input Sample data to be passed to the FlowManager processSample method. Contains a timestamp, a BPM value and optionally accellerometers 3d axis vector data
Initializers
init(time:bpm:accelerometer:)
public init(time: TimeInterval, bpm: Int, accelerometer: (Double, Double, Double) = (0.0, 0.0, 0.0))
Build a Sample providing timestamp, BPM value and optionally accellerometer 3d axis data
Properties
time
let time: TimeInterval
The time stamp of the BPM sample as received from the Heart Rate Monitor sensor.
bpm
let bpm: Int
The BPM value.
accelerometer
let accelerometer: (Double, Double, Double)
The optional accellerometer data at the moment BPM data was received.