RMS algorithm is used to compare the results