Robochameleon
v1.0
|
Quantizer is a unit that outputs a quantized version of input signal interface. More...
Inherits unit.
Public Member Functions | |
function | Quantizer_v1 (in param) |
Class constructor. More... | |
function | traverse (in obj, in in) |
Main function call. | |
function | normalizeInput (in obj, in in) |
Normalize input. More... | |
function | quantization (in obj, in in) |
Searching maximum value of the signal. More... | |
function | addnoise (in obj, in in, in out) |
Quantizing the signal for values between 1 and 2^bitResolution. More... | |
![]() | |
function | traverseNode (in obj) |
Set unique ID when creating a unit. More... | |
function | connectOutput (in obj, in uobj, in unitOutput, in nextUnitInput) |
Specify where signal should go next. More... | |
function | connectOutputs (in obj, in units, in destInputs) |
Specify where signal should go next. More... | |
function | writeInputBuffer (in obj, in sig, in inputId) |
write input buffer | |
function | horzcat (in varargin) |
horizontal concatenation | |
function | vertcat (in varargin) |
vertical concatenation | |
function | setparams (in obj, in params, in REQUIRED_PARAMS, in QUIET_PARAMS) |
set parameters More... | |
function | view (in obj) |
Show interactive GUI through unit_view-class. | |
Public Attributes | |
Property | nOutputs |
Number of Outputs. | |
Property | nInputs |
Number of Inputs. | |
Property | bitResolution |
Resolution of DAC in bits. | |
Property | targetENoB |
Target Effective Number of Bits. | |
Property | location |
Quantizer location. | |
![]() | |
Property | inputBuffer |
Buffer for storing inputs as we traverse the graph. | |
Property | nextNodes |
Children nodes. | |
Property | destInputs |
Destination inputs in children. | |
Property | results |
For storing results. | |
Property | label |
Property | draw |
enable/disable plotting | |
Property | nInputs |
Number of signals traverse expects. | |
Property | nOutputs |
Number of outputs traverse expects. | |
Quantizer is a unit that outputs a quantized version of input signal interface.
This unit implements a quantizer.
Observations
It receives complex signals and outputs complex signals. If you have a multimode (multicolumn) signal, it will quantize each column.
Example
Advanced Example
Output results structure
The following results are produced and stored in the structure results:
References
Definition at line 63 of file Quantizer_v1.m.
function Quantizer_v1::Quantizer_v1 | ( | in | param | ) |
Class constructor.
param.bitResolution | BitResolution - is the resolution of your quantizer. [Default: 8] |
param.targetENoB | TargetENoB - is the ENoB target that you want to achieve adding noise. (Optional) |
obj | An instance of the class Quantizer_v1 |
function Quantizer_v1::addnoise | ( | in | obj, |
in | in, | ||
in | out | ||
) |
Quantizing the signal for values between 1 and 2^bitResolution.
Fixing outliers Recentering the signal
function Quantizer_v1::normalizeInput | ( | in | obj, |
in | in | ||
) |
Normalize input.
Quantizing the signal Adding Noise Normalize output Requantizing Computing ENoB Results Defining Output as a signal interface
function Quantizer_v1::quantization | ( | in | obj, |
in | in | ||
) |
Searching maximum value of the signal.
Normalizing signal with maximum value