Anomaly detector: implemented skeleton for threshold analysis