Download Filter Design Toolbox User`s Guide

Transcript
10
Property Reference
• The ProductFormat property
• The SumFormat property
Set each of these data format properties using a quantizer.
RoundMode
The RoundMode property values specify the rounding method used for
quantizing numerical values. Specify the RoundMode property values as one of
the following five strings.
RoundMode String
Description of Rounding Algorithm
'ceil'
Round up to the next allowable quantized value.
'convergent'
Round to the nearest allowable quantized value.
Numbers that are exactly halfway between the
two nearest allowable quantized values are
rounded up only if the least significant bit (after
rounding) would be set to 1.
'fix'
Round negative numbers up and positive
numbers down to the next allowable quantized
value.
'floor'
Round down to the next allowable quantized
value.
'round'
Round to the nearest allowable quantized value.
Numbers that are halfway between the two
nearest allowable quantized values are rounded
up.
Default value: 'floor'
Remarks: The RoundMode property for quantizers affects the following
quantized filter and quantized FFT data format properties:
• The CoefficientFormat property
• The InputFormat property
• The MultiplicandFormat property
10-8