exponentbias - Exponent bias for quantizer object

Syntax

b = exponentbias(q)

Description

b = exponentbias(q) returns the exponent bias of the quantizer object q. For fixed-point quantizer objects, exponentbias(q) returns 0.

Examples

q = quantizer('double');
b = exponentbias(q)

b =

        1023

Algorithm

For floating-point quantizer objects,

where e = eps(q), and exponentbias is the same as the exponent maximum.

For fixed-point quantizer objects, b = 0 by definition.

See Also

eps, exponentlength, exponentmax, exponentmin

  


 © 1984-2008- The MathWorks, Inc.    -   Site Help   -   Patents   -   Trademarks   -   Privacy Policy   -   Preventing Piracy   -   RSS