All functions

allocate_float_bits()

Approximate algorithm for allocating bits to a float given the maximum value

bits_to_dbl()

Bits to double

bits_to_int32()

Convert 32 bits into a a single R 32 bit signed integer value

bits_to_lofi()

Convert a sequence of 0/1 values (MSB first) to an integer

choice_to_lofi() lofi_to_choice()

Convert a choice from a list of options to a lofi bit representation

dbl_to_bits()

Convert a single double precision floating point value to bits

dbl_to_lofi() lofi_to_dbl()

Pack a double floating point value into fewer than 32 bits.

expect_single_numeric()

Expect the given value to be a single, non-NA numeric value

expect_valid_nbits()

Validate 'nbits' to be a proper value

exponent_bits_to_int32()

Convert an exponent in offset binary format to a 32 bit signed integer

exponent_range()

Calculate the possible range of exponents given the number of bits available

float_info()

What can the given float hold?

formula_to_1arg_function()

Conversion of formula to a 1-arg function

hex_colour_to_lofi() lofi_to_hex_colour()

Quantize hex colours into a low-bit representation

int32_to_bits()

Convert a single R 32-bit signed integer value to bits

int32_to_exponent_bits()

Convert a 32 bit signed integer to a floating point exponent in offset binary format

int32_to_lofi() lofi_to_int32()

Convert a single R 32-bit signed integer value to a lower bit representation

lgl_to_lofi() lofi_to_lgl()

Convert a logical to a lofi representation

lofi_to_bits()

Convert a low-bit integer into bit representation

lofi_to_fp() dbl_to_fp() fp_to_dbl() fp_to_lofi() change_format_fp()

Unpack a floating point value into a list

mask()

Create an integer to bit-mask the lower 'nbits' of an integer

max_dbl_with_format()

Determine max floating point value with given bit allocation

pack() unpack()

Pack/Unpack values as low-fidelity representation into a single 32-bit integer

pack_custom() unpack_custom() pack_integer() unpack_integer() pack_scaled() unpack_scaled() pack_logical() unpack_logical() pack_choice() unpack_choice() pack_double() unpack_double() pack_colour() unpack_colour()

Pack/unpack values of the given type

plot_lofi_palette()

Display a vector of lofi colours.

plot_palette()

Display a vector of hex colours.

rgba_vec_to_hex_colour() hex_colour_to_rgba_vec() int32_to_hex_colour() hex_colour_to_int32() rgba_vec_to_int32() int32_to_rgba_vec()

Convert between equivalent 32-bit representations

sanitise_pack_spec()

Sanitise a full pack_spec

sanitise_spec()

Sanitise an individual spec

sanitise_spec_choice()

Sanitise a spec for an 'choice'

sanitise_spec_colour()

Sanitise a spec for an 'colour'

sanitise_spec_custom()

Sanitise a spec for a 'custom' pack

sanitise_spec_double()

Sanitise a spec for a 'double'

sanitise_spec_integer()

Sanitise a spec for a 'integer'

sanitise_spec_logical()

Sanitise a spec for a 'logical'

sanitise_spec_scaled()

Sanitise a spec for a 'scaled' value

show_bits()

Show a representation of the bits in a numeric value

valid_encoded_value()

Check a value fits in the given number of bits