def is_uniform(x, epsilon=0.000000001):
    """Determine if the vector is uniform within epsilon tolerance. Useful to stop a simulation if the fitness landscape has become essentially uniform."""
    x_0 = x[0]
    for i in range(1, len(x)):
        if abs(x[i] - x_0) > epsilon:
            return False
    return True