find_nearest#

cosmicjellyfish.analysis.utilities.find_nearest(array, value)[source]#

This function finds the index of the element in array which is nearest to ValueError :type array: :param array: an array of numbers :type value: :param value: a number :return: the index in array nearest to value :rtype: int