def has_converged(mu, oldmu):
    """
    A boolean indicating whether or not a set of centroids has converged

    Parameters: 
        mu - the latest array of centroids
        oldmu - the array of centroids from the previous iteration
    Returns:
        A boolean indicating whether or not the old and new centroids are the same, 
        representing whether or not the clustering has converged
    """
    return (set([tuple(a) for a in mu]) == set([tuple(a) for a in oldmu]))