from typing import List


def create_kdist_data(knn_distances: List[float]):
    """Get kdist data that can be plotted to determine EPS param for DBScan algorithm.

    Args:
        knn_distances: A sorted list of knn distances.

    Returns:
        kdist data.

    """
    data = []
    for i, distance in enumerate(knn_distances):
        point = (i, distance)
        data.append(point)
    return data