tightbinder.utils#

Miscellaneous routines used in the other modules.

Functions

alpha_shape_2d

Compute the alpha shape (concave hull) of a set of 2D points.

condense_vector

Routine to reduce the dimensionality of a given vector by summing each consecutive n (step) numbers.

generate_basis_combinations

Routine to generate the coefficients corresponding to linear combinations of some basis vectors.

hash_numpy_array

Function to hash a numpy array.

overrides

Decorator to print whether a method is being overwritten or not.

pretty_print_dictionary

Routine to pretty print the contents of a dictionary.

scale_array

Routine to scale a vector by a factor max_value/max(vector), where max_value is the new maximum value.