AnomalyDetectionFilter#
- class pyCGM2.Anomaly.anomalyFilters.AnomalyDetectionFilter(acq: btkAcquisition, filename: str, procedure: AnomalyDetectionProcedure, **kwargs)#
- Anomaly detector filter. - This filter interfaces with an anomaly detection procedure to identify 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 (AnomalyDetectionProcedure) – An instance of a subclass of AnomalyDetectionProcedure used to detect anomalies. 
 
 - Kwargs:
- frameRange (List[int]): A list specifying the range of frames to analyze.
- The list should contain two elements: the start frame and the end frame. 
 
 - __init__(acq: btkAcquisition, filename: str, procedure: AnomalyDetectionProcedure, **kwargs)#
- Initializes the AnomalyDetectionFilter with the given acquisition data, file name, and procedure. 
 - Methods - __init__(acq, filename, procedure, **kwargs)- Initializes the AnomalyDetectionFilter with the given acquisition data, file name, and procedure. - run()- Executes the anomaly detection filter. - run()#
- Executes the anomaly detection filter. - Runs the specified anomaly detection procedure on the acquisition data and returns the detected anomalies. - Returns:
- dict – The detected anomalies as returned by the anomaly detection procedure. 
 
 
