rotate_dataset_series#
- mobgap.utils.rotations.rotate_dataset_series( ) DataFrame[source]#
Rotate data of a single sensor using a series of rotations.
This will apply a different rotation to each sample of the dataset.
- Parameters:
- dataset
Data with axes names as [“acc_x”, “acc_y”, “acc_z”, “gyr_x”, “gyr_y”, “gyr_z”]. If your data is defined in the body frame, use
mobgap.utils.dtypes.to_sensor_frameto convert it to the sensor frame first, as rotations are only defined for the sensor frame.- rotations
Rotation object that contains as many rotations as there are datapoints
- Returns:
- rotated_data
copy of
datarotated byrotations