rel_error_to_index#

cosmicjellyfish.analysis.utilities.rel_error_to_index(index, array, percentage=True)[source]#

This function returns the percentage difference compared to median of an array for each element :type array: :param array: numpy array of numbers :optional_param percentage: if set to True, returns percentage difference. Default: True :return: difference of each element compared to median of array :rtype: Numpy array