WTProcessor class
Processor class for Walking Test (WT) data analysis.
Implements step detection algorithms for walking tests using accelerometer data. The processor analyzes sensor data to count steps and calculate walking metrics such as time for a specific number of steps or step cadence.
Used by WtTestStep
for post-processing sensor data after test completion.
The algorithm is optimized for chest-mounted sensors and uses:
- Y-axis accelerometer data with gravity removal
- Low-pass filtering to reduce noise
- Peak detection with configurable thresholds
- Step timing validation to prevent false positives
Returns a WTResult containing walking performance metrics.
- Inheritance
-
- Object
- MobilityProcessor<
WTResult> - WTProcessor
Constructors
- WTProcessor.new({required WTConfig config, required WTMeasure measure})
Properties
Methods
-
decimateData<
T> (List< T> input, double targetRate, double actualRate) → List<T> - Decimates input data by reducing the sampling rate.
-
detectSteps(
{required List< double> acc, required double threshold, int smoothingWindow = 10, int minStepIntervalMs = 300}) → List<Step> - Detects individual steps in accelerometer data using peak detection.
-
getStepCount(
{required List< SensorEvent> accData, required double accActualRate}) → int - Counts the total number of steps detected in accelerometer data.
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
processData(
{required List< SensorEvent> accData, required List<SensorEvent> gyroData, required List<SensorEvent> magData, required double accActualRate, required double gyroActualRate, required double magActualRate}) → Future<List< WTResult> > -
Processes raw sensor data and returns a list of WTResults.
override
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited