Anomaly Detection Based on Principle of Justifiable Granularity and Probability Density Estimation