AccelerometerFeaturesProbe
Collects user accelerometer data over a sampling period and calculates a set of features from it, as an AccelerationFeatures data point.
Configured with a PeriodicSamplingConfiguration configuration.
- Inheritance
-
- Object
- AbstractExecutor<
Measure> - Probe
- StreamProbe
- PeriodicStreamProbe
- BufferingPeriodicStreamProbe
- AccelerometerFeaturesProbe
Constructors
AccelerometerFeaturesProbe
Properties
bufferingStream
The stream of events to buffer. Implemented by subclasses.
sensorEndTime
End of the last sampling period, in microseconds since epoch.
sensorStartTime
Start of the current sampling period, in microseconds since epoch.
userAccelerometerEventList
The events buffered in the current sampling period.
Methods
getMeasurement
Returns the Measurement for the last sampling window.
Implemented by subclasses.
Can return null if no data is available. Can return an Error if an error occurs.
onSamplingData
- dynamic event
Called for each event on bufferingStream; buffers it.
onSamplingEnd
Called when a sampling window ends, before getMeasurement.
onSamplingStart
Called when a sampling window starts, before listening.