UnitfulData
UnitfulData.jl is an extension for Unitful.jl, including units of Information commonly encountered in Information Theory and Data Storage.
The extension also includes the exported macro @unit_custom_prefix
that allows the generation of prefixed units for a general unit using a custom base and exponents and the constant prefixed_data
containing the most common units in metric (base 10) and IEC (binary) format.
The Package Guide
provides a tutorial explaining how to use UnitfulData.
Defined Units and Dimensions
Data
A dimension representing Information either as Storage, Memory, or Entropy.
bit
: the most basic unit of Information in computing represented a binary digittrit
: a ternary unit that encodes the Information with three non-negative numbersByte
: number of bits used to encode a character of text in the computer.sh
: the shannon is the unit of information content associated with and event occuring with probability 1/2.Hart
: the hartley is a unit of Information and entropy on base 10nat
: the natural unit of Information is a unit of Information and entropy based on the natural logarithms
Data Rate
A derived dimension representing the unit of information passing through a channel per unit of time.
bps
: the change of rate of Information in bits/secondsBps
: the change of rate of Information in Bytes/seconds