plot_compact_float: Plot the individual bits of a low-fidelity float (stored in...

Description Usage Arguments Value

View source: R/plot-double.R

Description

Plot the individual bits of a low-fidelity float (stored in an integer)

Usage

1
2
plot_compact_float(fp, float_type = c("single", "half", "bfloat16"),
  float_bits = NULL, base_size = 8, ...)

Arguments

fp

floating_point stored in an integer

float_type

one of 'single', 'half', 'bfloat16'

float_bits

3 element vector with bit allocations for sign, exponent and mantissa

base_size

base_size

...

arguments passed to plot_chars

Value

return a ggplot object


coolbutuseless/exhibitionist documentation built on Nov. 4, 2019, 9:12 a.m.