skrf.util.find_nearest¶
- skrf.util.find_nearest(array, value)[source]¶
Find the nearest value in array.
- Parameters
array (npy.ndarray) – array we are searching for a value in
value (element of the array) – value to search for
- Returns
found_value – the value that is numerically closest to value
- Return type
an element of the array