pow2round

sofia_redux.scan.utilities.numba_functions.pow2round(x)[source]

Return 2 to the power of round(log_2(x)).

Rounds a number to the nearest (log_2 scale) power of 2.

Parameters:
xint or float
Returns:
int