dispel.providers.generic.tasks.draw.tremor module#

A module dedicated to intentional tremors computation.

dispel.providers.generic.tasks.draw.tremor.get_deceleration_profile_data(user, ref, level_id)[source]#

Transform {level}_path data frame to {level}_deceleration one.

It extracts the proper data to compute intentional tremors (tsTouch and minimal distance pd.Series.).

Parameters:
  • user (DataFrame) – The {level}_user_paths data frame.

  • ref (DataFrame) – The {level}_reference data frame.

  • level_id (str) – The given level on which to compute the data transformation.

Returns:

The {level}_deceleration data frame containing tsTouch and min_distance pd.Series of the user points attributed to the specific segment where the deceleration profile is relevant to compute intentional tremors.

Return type:

pandas.DataFrame