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.

Copyright 2017-2024 SensiML Corporation

This file is part of SensiML™ Piccolo AI™.

SensiML Piccolo AI is free software: you can redistribute it and/or modify it under the terms of the GNU Affero General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.

SensiML Piccolo AI is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more details.

You should have received a copy of the GNU Affero General Public License along with SensiML Piccolo AI. If not, see <https://www.gnu.org/licenses/>.

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