cogpy.utils.convert

Functions

closest_power_of_two(num)

Find the closest power of two to the given number (can be up or down).

to_int16_arr(float_arr)

Convert a numpy array to int16 format with safe clipping and normalization.