quantizer
Create quantizer
object
Description
The quantizer
object describes data type properties to use for
quantization. After you create a quantizer
object, use quantize
to quantize double-precision data. You can use the
quantizer
object to simulate custom floating-point data types with
arbitrary word length and exponent
length.
Creation
Syntax
Description
creates a
q
= quantizerquantizer
object with properties set to their default values. To use
this object to quantize values, use quantize
.
sets named properties using name-value arguments. You can specify multiple name-value
arguments. Enclose each property name in single quotes.q
= quantizer(Name,Value
)
sets properties using property values. Property values are unique; you can set the
property names by specifying just the property values in the command. When two values
conflict, q
= quantizer(Value1,Value2
)quantizer
sets the last property value in the list.
sets
properties named in each field name with the values contained in the structure
q
= quantizer(s
)s
.
sets the named properties specified in the cell array of character vectors
q
= quantizer(pn,pv
)pn
to the corresponding values in the cell array
pv
.
You can use a combination of name-value string arguments, structures, and name-value
cell array arguments to set property values when creating a quantizer
object.
Properties
Object Functions
quantize | Quantize numeric data using quantizer object |
unitquantize | Quantize numeric data using quantizer object except numbers
within eps of +1 |
wordlength | Word length of quantizer object |
Examples
Version History
Introduced before R2006a