AnomalyDetectionProcedure#

class pyCGM2.Anomaly.anomalyDetectionProcedures.AnomalyDetectionProcedure#

Abstract base class for anomaly detection procedures.

This class provides a basic structure for implementing different anomaly detection techniques. It should be extended to add specific functionalities for various types of anomaly detection.

__init__()#

Initializes the AnomalyDetectionProcedure class.

Methods

__init__()

Initializes the AnomalyDetectionProcedure class.

getAnomaly()

Returns the detected anomaly.

run(acq, filename, options)

Abstract method to run the anomaly detection procedure.

getAnomaly()#

Returns the detected anomaly.

Returns:

dict – A dictionary containing the anomaly output and error state.

run(acq: btkAcquisition, filename: str, options: Dict)#

Abstract method to run the anomaly detection procedure.

Parameters:
  • acq (btk.btkAcquisition) – An instance of a btk acquisition object.

  • filename (str) – The filename of the data to be processed.

  • options (Dict) – A dictionary of options specific to the detection procedure.