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 digit

  • trit: a ternary unit that encodes the Information with three non-negative numbers

  • Byte: 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 10

  • nat: 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/seconds

  • Bps: the change of rate of Information in Bytes/seconds

Exported Macros and Functions

From Unitful

From UnitfulData