An algorithm to classify an anomaly as critical or not