cosmicjellyfish.analysis.utilities#
- synopsis:
A collection of small utilities.
Functions
This function prints to screen the CosmicFish header. |
|
This function returns the number of sigmas given a confidence level. |
|
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 |
|
This small function regroups a list in sub lists of n elements |
|
Checks if elements is a list. |
|
This function returns a float built with the given (base 10) mantissa and exponent. |
|
This function creates the directory dirpath if it is not found :type dirpath: :param dirpath: string with the path of the directory to be created :return: None :rtype: NoneType |
|
This function returns a nice number built with num. |
|
This function returns the (base 10) exponent and mantissa of a number. |
|
This function prints on the screen a nicely formatted table. |
|
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. |
|
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. |
|
This function returns the number in num_err at the precision of error. |