RMS function

Quality criteria for comparing patterns with shifts