info

object info

Units of information

These definitions use byte as the base unit, and therefore may be thought of as "storage centric" as opposed to information centric:

or physics centric:

For example in physics a nat is unitless, where in these definitions it is a derived unit of byte.

class Object
trait Matchable
class Any
info.type

Type members

Classlikes

object prefixes

Standard binary prefixes

Standard binary prefixes

Binary prefixes used for computing storage

Standard SI base-10 prefixes are defined in coulomb.units.si.prefixes

Types

final type Bit

The fundamental unit of information: a single "yes/no" answer.

The fundamental unit of information: a single "yes/no" answer.

Equivalent to one shannon:

final type Byte

A byte is 8 bits, and corresponds to one ASCII character in typical computer memory.

A byte is 8 bits, and corresponds to one ASCII character in typical computer memory.

Note:

care should be taken to distinguish from scala.Byte

final type Nat

Logarithmic unit of information

Logarithmic unit of information

The logarithmic form of Shannon entropy yields quantities in nats:

Givens

Givens

given ctx_unit_Bit: DerivedUnit[Bit, Byte / 8, "bit", "b"]
given ctx_unit_Byte: BaseUnit[Byte, "byte", "B"]
given ctx_unit_Nat: DerivedUnit[Nat, 1.4426950409d * Bit, "nat", "nat"]