AccelerationFeatures class

A set of acceleration (non-gravitational) features collected over a specific sampling period.

The set of features is inspired from the Medium article on Feature Engineering on Time-Series Data for Human Activity Recognition and contains the following 15 simple statistical features:

  1. mean
  2. standard deviation
  3. average absolute deviation
  4. minimum value
  5. maximum value
  6. difference of maximum and minimum values
  7. median
  8. median absolute deviation
  9. inter-quartile range
  10. negative values count
  11. positive values count
  12. number of values above mean
  13. energy
  14. average resultant acceleration
  15. signal magnitude area

Most of these features are self-explanatory, except:

  • Energy of a signal in every axis is computed by taking the mean of sum of squares of the values in a window in that particular axis.
  • Average resultant acceleration over the window is computed by taking average of the square roots of the values in each of the three axis squared and added together.
  • Signal magnitude area is defined as the sum of absolute values of the three axis averaged over a window.
Inheritance
  • Object
  • Serializable
  • Data
  • SensorData
  • AccelerationFeatures
Annotations
  • @JsonSerializable(fieldRename: FieldRename.none, includeIfNull: false)

Constructors

AccelerationFeatures()
AccelerationFeatures.fromAccelerometerReadings(List<UserAccelerometerEvent> readings)
factory
AccelerationFeatures.fromJson(Map<String, dynamic> json)
factory

Properties

$type String?
The runtime class name (type) of this object. Used for deserialization from JSON objects.
getter/setter pairinherited
avgResultAcceleration num?
getter/setter pair
count int
getter/setter pair
format → DataType
The format of this data as a DataType.
no setterinherited
fromJsonFunction Function
The function which can convert a JSON string to an object of this type.
no setteroverride
hashCode int
The hash code for this object.
no setterinherited
jsonType String
Return the __type to be used for JSON serialization of this class. Default is runtimeType. Only specify this if you need another type.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
sensorSpecificData ↔ Data?
Additional sensor-specific data pertaining to this data point. This can be used to append highly-specific sensor data to an otherwise common data type.
getter/setter pairinherited
signalMagnitudeArea num?
getter/setter pair
xAad num?
getter/setter pair
xAboveMean num?
getter/setter pair
xEnergy num?
getter/setter pair
xIqr num?
getter/setter pair
xMad num?
getter/setter pair
xMax num?
getter/setter pair
xMaxMinDiff num?
getter/setter pair
xMean num?
getter/setter pair
xMedian num?
getter/setter pair
xMin num?
getter/setter pair
xNegCount num?
getter/setter pair
xPosCount num?
getter/setter pair
xStd num?
getter/setter pair
yAad num?
getter/setter pair
yAboveMean num?
getter/setter pair
yEnergy num?
getter/setter pair
yIqr num?
getter/setter pair
yMad num?
getter/setter pair
yMax num?
getter/setter pair
yMaxMinDiff num?
getter/setter pair
yMean num?
getter/setter pair
yMedian num?
getter/setter pair
yMin num?
getter/setter pair
yNegCount num?
getter/setter pair
yPosCount num?
getter/setter pair
yStd num?
getter/setter pair
zAad num?
getter/setter pair
zAboveMean num?
getter/setter pair
zEnergy num?
getter/setter pair
zIqr num?
getter/setter pair
zMad num?
getter/setter pair
zMax num?
getter/setter pair
zMaxMinDiff num?
getter/setter pair
zMean num?
getter/setter pair
zMedian num?
getter/setter pair
zMin num?
getter/setter pair
zNegCount num?
getter/setter pair
zPosCount num?
getter/setter pair
zStd num?
getter/setter pair

Methods

equivalentTo(Data other) bool
Is this data equivalent to other?
inherited
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson() Map<String, dynamic>
Return a JSON encoding of this object.
override
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited

Constants

dataType → const String