Description Usage Arguments Value Examples
This function rounds the input signal
with a large set of
input levels (values that more than 1 observation have) to a countable
smaller set. The quantization error - the difference between an input value
and its quantized value - is smaller than minDiff
.
1 | MergeLevels(signal, minDiff)
|
signal |
a numeric vector. |
minDiff |
a numeric value indicating the maximum round-off error |
The returned value is a list of two vectors:
signal a numeric vector specifying the output signal (with smaller set of levels);
levels.index an integer vector specifying the index of all the observations that belongs to any level
1 2 3 4 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.