PolarDerivedSample
public struct PolarDerivedSample : Sendable
One derived-measurement sample produced per time window (e.g. 1 sample/s with 1 000 ms window).
methodValues maps each active PolarDerivedMeasurementMethod to its output values:
- Component methods (DOWNSAMPLE, MIN, MAX, AVG, STD for a 3-axis source) →
[x, y, z] Scalar methods (NORM, MIN_OF_NORMS, MAX_OF_NORMS, STD_OF_NORMS, NORM_OF_STDS) →
[v]
Parameters
timeStamp
|
sample timestamp in nanoseconds, corresponds to end of the time window |
activeMethods
|
the set of methods active for this recording |
methodValues
|
output values per active method; absent key means method was not active |
-
Undocumented
Declaration
Swift
public let timeStamp: UInt64 -
Undocumented
Declaration
Swift
public let activeMethods: Set<PolarDerivedMeasurementMethod> -
Undocumented
Declaration
Swift
public let methodValues: [PolarDerivedMeasurementMethod : [Int32]] -
Undocumented
Declaration
Swift
public init(timeStamp: UInt64, activeMethods: Set<PolarDerivedMeasurementMethod>, methodValues: [PolarDerivedMeasurementMethod: [Int32]])