__Q-Formats__

Fixed point number representations are termed as Q-point format(As IEEE 754 standard for floating point representation).

Let us start with the basic notation of a Q-point for a fixed point number.

Convention is as follows

Q [QI]. [QF]

QI -> Integer bits

QF -> Fraction bits

So sum of QI and QF gives the total number of bits that is needed to represent a number in

QI + QF = Word length and this word length corresponds to variable widths supported on various processors. Typical word lengths would be 8, 16 and 32-bit.

For example: Q2.6 number would be an 8-bit number with 2 integer bits and 6 fraction bits.

__Fixed point range – Integer portion__

The range of a floating point variable in an algorithm sets the number of bits (QI) required to represent the integer portion of the number.

This relationship for unsigned numbers is defined by the equations:

0 ≤ α ≤ 2^{QI}

Where α is floating point variable.

(We will see few examples on this in coming sessions)

If floating point number is a singed value.

-2^{(QI-1)} ≤ α ≤ 2^{(QI-1)}

Where α is floating point variable.

__Resolution of a fixed point number – Fractional portion:__

The resolution of a fixed point number is set by the remaining fraction bits (QF) for a given word length (WL) for the variable. For a given word length and dynamic range of a variable the resolution is limited. If higher resolution is needed for a given range then the WL of the variable must be increased to provide this resolution.

The resolution ε, of a fixed point number is as follows

ε = 1/ (2^{QF})

Therefore the number of fractional (Q_{F}) bits required for a particular resolution is defined by the equation.

Q_{F }= log_{2} (1/ ε)

However since Q_{F }is a integer values only, the results of logarithm result:

_{F }= celling (log

_{2}(1/ ε))

We will discussion more and in detail math on fixed point numbers in coming posts.

I really appreciate information shared above. It’s of great help. If someone want to learn Online (Virtual) instructor lead live training in Machine Learning , kindly contact us http://www.maxmunus.com/contact

ReplyDeleteMaxMunus Offer World Class Virtual Instructor led training on TECHNOLOGY. We have industry expert trainer. We provide Training Material and Software Support. MaxMunus has successfully conducted 100000+ trainings in India, USA, UK, Australlia, Switzerland, Qatar, Saudi Arabia, Bangladesh, Bahrain and UAE etc.

For Demo Contact us.

Sangita Mohanty

MaxMunus

E-mail: sangita@maxmunus.com

Skype id: training_maxmunus

Ph:(0) 9738075708 / 080 - 41103383

http://www.maxmunus.com/