Returns the index of the closest value in array.
array (ndarray) – Input array.
value (float) – Value to compare to.
retvalue (bool) – If True, return the index and the closest value.
Index of closest value, Closest value (if retvalue is True)
retvalue
int, float