def simplify_vector_resolution(vector, step_min):
    """
    Function to keep only the values that respect the resolution in vector.

    Parameters
    ----------
    vector : iterable
        The vector to be simplify.

    step_min : float
        The minimal step between two values.

    Returns
    ----------
    simplified_vector : iterable
        vector with the correct resolution.
    """
    previous = vector[0]-step_min-1
    simplified_vector = []
    for current in vector:
        resolution = current - previous
        if resolution >= step_min:
            simplified_vector.append(current)
            previous = current
            # # Cut values to close of each other
            # distinct = []
            # diff_distinct = np.diff(vector)
            # min_res = np.mean(diff_distinct) * 0.0001
            # for i in range(len(diff_distinct)):
            #     if diff_distinct[i] > min_res:
            #         distinct.append(vector[i])
            # distinct.append(vector[-1])

    return simplified_vector