Package com.polar.sdk.api.model
Class PolarDerivedSample
-
- All Implemented Interfaces:
public final class PolarDerivedSampleOne derived-measurement sample produced per time window (e.g. 1 sample/s with 1000 ms window).
methodValues maps each active PolarDerivedMeasurementMethod to its output values:
Component methods (e.g. 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]
All raw integer values must be multiplied by the recording's conversion factor to obtain physical values (same factor as the source recording).
-
-
Field Summary
Fields Modifier and Type Field Description private final LongtimeStampprivate final Set<PolarDerivedMeasurementMethod>activeMethodsprivate final Map<PolarDerivedMeasurementMethod, List<Integer>>methodValues
-
Constructor Summary
Constructors Constructor Description PolarDerivedSample(Long timeStamp, Set<PolarDerivedMeasurementMethod> activeMethods, Map<PolarDerivedMeasurementMethod, List<Integer>> methodValues)
-
Method Summary
Modifier and Type Method Description final LonggetTimeStamp()sample timestamp in nanoseconds, corresponds to end of the time window final Set<PolarDerivedMeasurementMethod>getActiveMethods()the set of methods active for this recording final Map<PolarDerivedMeasurementMethod, List<Integer>>getMethodValues()output values per active method; absent key means method was not active -
-
Constructor Detail
-
PolarDerivedSample
PolarDerivedSample(Long timeStamp, Set<PolarDerivedMeasurementMethod> activeMethods, Map<PolarDerivedMeasurementMethod, List<Integer>> methodValues)
-
-
Method Detail
-
getTimeStamp
final Long getTimeStamp()
sample timestamp in nanoseconds, corresponds to end of the time window
-
getActiveMethods
final Set<PolarDerivedMeasurementMethod> getActiveMethods()
the set of methods active for this recording
-
getMethodValues
final Map<PolarDerivedMeasurementMethod, List<Integer>> getMethodValues()
output values per active method; absent key means method was not active
-
-
-
-