sampling_packages/sensors/sensors library

A library containing a sampling package for collecting data from the basic device sensors:

  • accelerometer
  • gyroscope
  • magnetometer
  • acceleration features
  • ambient light
  • pedometer (step events)

Classes

AccelerationFeatures
A set of acceleration (non-gravitational) features collected over a specific sampling period.
AccelerometerFeaturesProbe
A probe collecting accelerometer data over a sampling period and calculates a set of features based on the samplings, as represented by a AccelerationFeatures data point.
AccelerometerProbe
A probe collecting raw data from the accelerometer.
AmbientLight
Ambient light intensity in Lux. Typically collected from the light sensor on the front of the phone.
GyroscopeProbe
A probe collecting raw data from the gyroscope.
LightProbe
The LightProbe listens to the phone's light sensor typically located near the front camera. Every value is in the SI unit Lux and is stored in a AmbientLight object.
MagnetometerProbe
A probe collecting raw data from the magnetometer.
PedometerProbe
The pedometer probe listens to the hardware step counter sensor.
SensorProbe
An abstract sensor probe used by all sensor probes to get the samplingPeriod.
SensorSamplingPackage
UserAccelerometerProbe
A probe collecting raw data from the user accelerometer.