The standard deviation of the residual is decreasing until no more significant structures are found. The convergence can be estimated from the residual. The algorithm stops when: