iwfm.calib.find_nearest_index

iwfm.calib.find_nearest_index(array, value)[source]

Find the index of the value in the first column of the array that is closest to the given value.

Parameters:
  • array (numpy array) – array of values

  • value (float) – value to find in the array

Returns:

idx – index of the value in the array

Return type:

int