blob: e8b0a1d9c95164378c6bec8051d594f0a7442040 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
|
<html><head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>uencode</title>
<style type="text/css" media="all">
@import url("scilab_code.css");
@import url("xml_code.css");
@import url("c_code.css");
@import url("style.css");
</style>
</head>
<body>
<div class="manualnavbar">
<table width="100%"><tr>
<td width="30%">
<span class="previous"><a href="udecode.html"><< udecode</a></span>
</td>
<td width="40%" class="center">
<span class="top"><a href="section_e54aa8aac34aa55341e8b4b782fe1a74.html">FOSSEE Signal Processing Toolbox</a></span>
</td>
<td width="30%" class="next">
<span class="next"><a href="ultrwin.html">ultrwin >></a></span>
</td>
</tr></table>
<hr />
</div>
<span class="path"><a href="index.html">FOSSEE Signal Processing Toolbox</a> >> <a href="section_e54aa8aac34aa55341e8b4b782fe1a74.html">FOSSEE Signal Processing Toolbox</a> > uencode</span>
<br /><br />
<div class="refnamediv"><h1 class="refname">uencode</h1>
<p class="refpurpose">Performs uniform quantization of the input into 2^n levels</p></div>
<div class="refsynopsisdiv"><h3 class="title">Calling Sequence</h3>
<div class="synopsis"><pre><span class="default">y</span><span class="default">=</span><span class="functionid">uencode</span><span class="default">(</span><span class="default">u</span><span class="default">,</span><span class="default">n</span><span class="default">,</span><span class="default">v</span><span class="default">,</span>'<span class="default">signflag</span>'<span class="default">)</span></pre></div></div>
<div class="refsection"><h3 class="title">Parameters</h3>
<dl></dl></div>
<div class="refsection"><h3 class="title">Description</h3>
<p class="para">Uniformly quantizes the input vector or n-dimensional array u into 2^n levels in the interval [-v,v]
If v is not specified, its default value is 1
'signflag' is a string that determines the nature of the quantization
If signflag='unsigned' then y contains unsigned integers in the range [0,2^n-1] corresponding to the 2^n levels
If signflag='unsigned' then y contains signed integers in the range [-2^(n-1),2^(n-1)-1] corresponding to the 2^n levels
The size of the integers in y in bits(8,16, or 32) depends on the value of n
If the input lies beyond +/- v it is saturated
Example
y=uencode(-1:0.5:1,3)
y =</p>
<p class="para">0 2 4 6 7
Author
Ankur Mallick
References
[1] International Telecommunication Union. General Aspects of Digital Transmission Systems: Vocabulary of Digital Transmission and Multiplexing, and Pulse Code Modulation (PCM) Terms. ITU-T Recommendation G.701. March, 1993.</p></div>
<div class="refsection"><h3 class="title">See also</h3>
<ul class="itemizedlist"><li class="member"><a href="udecode.html" class="link">udecode</a></li>
<li class="member"><a href="scilab://floor" class="link">floor</a></li></ul></div>
<br />
<div class="manualnavbar">
<table width="100%">
<tr><td colspan="3" class="next"><a href="http://bugzilla.scilab.org/enter_bug.cgi?product=Scilab%20software&component=Documentation%20pages" class="ulink">Report an issue</a></td></tr>
<tr>
<td width="30%">
<span class="previous"><a href="udecode.html"><< udecode</a></span>
</td>
<td width="40%" class="center">
<span class="top"><a href="section_e54aa8aac34aa55341e8b4b782fe1a74.html">FOSSEE Signal Processing Toolbox</a></span>
</td>
<td width="30%" class="next">
<span class="next"><a href="ultrwin.html">ultrwin >></a></span>
</td>
</tr></table>
<hr />
</div>
</body>
</html>
|