Exclusion of edges for the rms calculation