def convergence_eps(previous, error, iteration, eps=1e-05, maxiteration=100):
    """
        Criterion of convergence

        Arguments:
            previous {Float or None} -- Error at the previous step
            error {Float or None} -- Current error

        Returns:
            Boolean -- Algo has converged
    """
    if previous is None or error is None:
        return True
    return previous - error > eps and iteration < maxiteration