AnomalyCorrectionFilter#

class pyCGM2.Anomaly.anomalyFilters.AnomalyCorrectionFilter(acq: btkAcquisition, filename: str, procedure: AnomalyCorrectionProcedure)#

Anomaly correction filter.

This filter interfaces with an anomaly correction procedure to correct identified anomalies in biomechanical data.

Parameters:
  • acq (btk.btkAcquisition) – A BTK acquisition instance containing biomechanical data.

  • filename (str) – The name of the file associated with the BTK acquisition data.

  • procedure (AnomalyCorrectionProcedure) – An instance of a subclass of AnomalyCorrectionProcedure used for correcting anomalies.

__init__(acq: btkAcquisition, filename: str, procedure: AnomalyCorrectionProcedure)#

Initializes the AnomalyCorrectionFilter with the given acquisition data, file name, and procedure.

Methods

__init__(acq, filename, procedure)

Initializes the AnomalyCorrectionFilter with the given acquisition data, file name, and procedure.

run()

Executes the anomaly correction filter.

run()#

Executes the anomaly correction filter.

Runs the specified anomaly correction procedure on the acquisition data and returns the corrected data.

Returns:

Any – The result of the anomaly correction procedure, typically an updated acquisition instance or similar.