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.

  • 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.

  • rotation_unit ({“deg”, “rad”}, optional) – Unit for the three rotation columns in motpars. Default is “rad”.

  • bpm_min, bpm_max (float, optional) – Minimum and maximum respiration rate, in breaths per minute, defining the band to notch out. The defaults match the original Earl filter and are specific to the acquisition it was developed on, so set them to the respiration band of your own data when known.

returns:
  • motpars_filtered ((T, 6) array_like)

  • fd_filtered ((T,) array_like)