Towards a Unified Framework of Clustering-based Anomaly Detection