public void checkConvergence(){
  double maximum=Math.abs(mGridErrors[mExtremalIndices.get(0)]);
  for (int i=1; i < mExtremalIndices.size(); i++) {
    double current=Math.abs(mGridErrors[mExtremalIndices.get(i)]);
    if (current > maximum) {
      maximum=current;
    }
  }
  double convergence=maximum - Math.abs(mDelta);
  mConverged=convergence < CONVERGENCE_THRESHOLD;
}

public void checkConvergence ( ) { double maximum = Math . abs ( mGridErrors [ mExtremalIndices . get ( 0 ) ] ) ; for ( int i = 1 ; i < mExtremalIndices . size ( ) ; i ++ ) { double current = Math . abs ( mGridErrors [ mExtremalIndices . get ( i ) ] ) ; if ( current > maximum ) { maximum = current ; } } double convergence = maximum - Math . abs ( mDelta ) ; mConverged = convergence < CONVERGENCE_THRESHOLD ; }
checks for convergence of the frequency response of the current set of extremal indices to the filter specification by comparing the maximum absolute error value against the delta value to determine if these two values are within the convergence threshold .
