skrf.convenience.find_nearest_index

skrf.convenience.find_nearest_index(array, value)

find nearest value in array.

Parameters :

array : numpy.ndarray

array we are searching for a value in

value : element of the array

value to search for

Returns :

found_index : int

the index at which the numerically closest element to value was found at

taken from http://stackoverflow.com/questions/2566412/find-nearest-value-in-numpy-array :

Previous topic

skrf.convenience.find_nearest

Next topic

mathFunctions (skrf.mathFunctions)

This Page