allan_variance
decimal_to_binary
Math.
binary_to_decimal
Converts a binary string, sign bit then msb on left, to an integer. Negative numbers are assumed to be twos-complements, i.e., bitwise complement + 1.