Computer simulation of spectral averaging in envelope detection for rolling bearing fault diagnosis