Filter Design Toolbox    
eps

Return the quantized relative accuracy for quantized filters, quantizers, and quantized FFTs

Syntax

Description

eps(q) returns the quantization level of quantizer object q, or the distance from 1.0 to the next largest floating-point number when q is a floating-point quantizer object.

eps(hq) returns the quantization level of quantized filter hq, or the distance from 1.0 to the next largest floating-point number when hq is a floating-point quantized filter.

eps(f) returns the quantization level of quantized FFT f, or the distance from 1.0 to the next largest floating-point number when f is a floating-point quantized FFT.

Examples

returns the value 0.25. The following code

returns the values

for the quantizers in the quantized filter, and

for the quantizers in the quantized FFT.

Algorithm

For fixed-point or floating-point numbers,  where e is the relative accuracy of the quantizer and f is the fraction length of the quantizer.

See Also
eps, exponentbias, exponentlength, exponentmax, exponentmin


  disp errmean 

Learn more about the latest releases of MathWorks products:

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