ddmra.filter.filter_earl

Apply Earl filter to motion parameters.

Parameters
  • motpars ((T, 6) array_like) – Raw motion parameters. First three columns are translations and last three are rotations. Rotations in degrees.

  • t_r (float) – Repetition time in seconds.

  • radius (float, optional) – Head radius for conversion of rotation units to distance at the edge of the brain.

returns
  • motpars_filtered ((T, 6) array_like)

  • fd_filtered ((T,) array_like)