Frequency Stability Measurement Method Including Anomalies Detection