nearest_greater_idx

nrv.utils.nearest_greater_idx(array: ndarray[tuple[Any, ...], dtype[_ScalarT]], val: float) int[source]

Return index of neareast greater value

Parameters:
  • array (NDArray) – array of values

  • val (float) – neareast greater value to find index

Returns:

index of the neareast greater value

Return type:

int