Approach based on wavelet analysis for detecting and amending anomalies in dataset