First Steps
Submodules
fiducia.misc.
find_nearest
Find nearest value in array and return index, and value as a tuple.
array (list, numpy.ndarray) – Array of values to be searched.
value (int, float) – Value for which this function will find the nearest value in the array.
idx (int) – Index at which nearest value to input value occurs in the array.
array[idx] (int, float) – The nearest value to the input value.
Notes
Examples