find_nearest1# find_nearest1(array, value, dist_abs=True)[source]# Find the closest element of a vector Note Compared to the original find_nearest, it takes a scalar “value” Parameters: array (ndarray[Any, dtype[float64]]) – Vector value (float) – Value to find dist_abs (bool) – Whether the return the distance in absolute value Return type: Tuple[int, float, float] Returns: A tuple (index, value, distance) of the closest element