skrf.convenience.find_nearest

skrf.convenience.find_nearest(array, value)

find nearest value in array.

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

Parameters :

array : numpy.ndarray

array we are searching for a value in

value : element of the array

value to search for

Returns :

found_value : an element of the array

the value that is numerically closest to value

Previous topic

skrf.convenience.now_string

Next topic

skrf.convenience.find_nearest_index

This Page