2.4.2 Sensor Transforms
Act on a single sample of sensor data directly as a pre-processing step. Can create a new source that is fed as input to the next step in the pipeline. ie Ax, Ay, Az can become MagnitudeAxAyAz.
- Sensor Absolute Average
Computes the absolute average of a signal across the input_columns streams.
- Parameters
input_data – DataFrame containing the time series data
input_columns – sensor streams to use in computing the magnitude
- Returns
The input DataFrame with an additional column containing the per-sample absolute average of the desired input_columns
- Sensor Average
Computes the average of a signal across the input_columns streams.
- Parameters
input_data – DataFrame containing the time series data
input_columns – sensor streams to use in computing the average
- Returns
The input DataFrame with an additional column containing the per-sample average of the desired input_columns
- Magnitude
Computes the magnitude (square sum) of a signal across the input_columns streams.
- Parameters
input_columns (list [ str ]) – sensor streams to use in computing the magnitude
- Returns
The input DataFrame with an additional column containing the per-sample magnitude of the desired input_columns