quantizer Object Properties

The properties associated with quantizer objects are described in the following sections in alphabetical order.

DataMode

Type of arithmetic used in quantization. This property can have the following values:

The default value of this property is fixed.

When you set the DataMode property value to double or single, the Format property value becomes read only.

Format

Data format of a quantizer object. The interpretation of this property value depends on the value of the DataMode property.

For example, whether you specify the DataMode property with fixed- or floating-point arithmetic affects the interpretation of the data format property. For some DataMode property values, the data format property is read only.

The following table shows you how to interpret the values for the Format property value when you specify it, or how it is specified in read-only cases.

DataMode Property ValueInterpreting the Format Property Values

fixed or ufixed

You specify the Format property value as a vector. The number of bits for the quantizer object word length is the first entry of this vector, and the number of bits for the quantizer object fraction length is the second entry.

The word length can range from 2 to the limits of memory on your PC. The fraction length can range from 0 to one less than the word length.

float

You specify the Format property value as a vector. The number of bits you want for the quantizer object word length is the first entry of this vector, and the number of bits you want for the quantizer object exponent length is the second entry.

The word length can range from 2 to the limits of memory on your PC. The exponent length can range from 0 to 11.

double

The Format property value is specified automatically (is read only) when you set the DataMode property to double. The value is [64 11], specifying the word length and exponent length, respectively.

single

The Format property value is specified automatically (is read only) when you set the DataMode property to single. The value is [32 8], specifying the word length and exponent length, respectively.

OverflowMode

Overflow-handling mode. The value of the OverflowMode property can be one of the following strings:

The default value of this property is saturate.

The OverflowMode property value is set to saturate and becomes a read-only property when you set the value of the DataMode property to float, double, or single.

RoundMode

Rounding mode. The value of the RoundMode property can be one of the following strings:

The default value of this property is floor.

  


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