/*
 *  Alex Mathews, amathews@jhu.edu
 *  Pranav Lakshminarayanan, plakshm1@jhu.edu
 *  Computer Integrated Surgery I - Fall 2014
 */
package iterativeclosestpoint;

import java.util.ArrayList;

/**
 *
 * @author Pranav
 */
public interface Convergence {
    
    /**
     * Access the array of error from each iteration.
     * @return list of errors
     */
    ArrayList<Double> getErrors();
    
    /**
     * Has the dataset converged?
     * @param err error from latest iteration
     * @return true if converged, false if not
     */
    boolean isConverged(double err);
}
