jade.basic.numeric.distance(x1, y1, z1, x2, y2, z2)[source]

Get the distance between variables. :param x1: float :param y1: float :param z1: float :param x2: float :param y2: float :param z2: float :rtype: float

jade.basic.numeric.distance_numpy(array1, array2)[source]

Get the distance between two points :param array1: numpy.Array :param array2: numpy.Array :rtype: float

jade.basic.numeric.geometric_mean(data)[source]

Get the geometric mean of the data. Useful for numbers that go from 0 -> and are a type of enrichment of the data.

Parameters:data – numpy.Array
Returns:float
jade.basic.numeric.get_n_s(num)[source]

Get a string for a float at .2f

jade.basic.numeric.get_perc(freq, total)[source]

Get percent

jade.basic.numeric.get_s_perc(freq, total)[source]

Get string of percent

jade.basic.numeric.linear_rescale(min, max, value)[source]

Linearly rescale a value to 0 and 1 using the min and max values. :param min: :param max: :param value: :rtype: float

jade.basic.numeric.wrapto360(angle)[source]

Wrap a value on -180, 180 to 360.

Parameters:degrees – float
Returns:float