File: QUANT_f.man

package info (click to toggle)
scilab 2.4-1
  • links: PTS
  • area: non-free
  • in suites: potato, slink
  • size: 55,196 kB
  • ctags: 38,019
  • sloc: ansic: 231,970; fortran: 148,976; tcl: 7,099; makefile: 4,585; sh: 2,978; csh: 154; cpp: 101; asm: 39; sed: 5
file content (56 lines) | stat: -rw-r--r-- 853 bytes parent folder | download | duplicates (2)
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
.TH QUANT_f 5 "Janvier 1997" "Scilab Group" "Scicos Block"
.so ../sci.an
.SH NAME
QUANT_f - Scicos Quantization block
.SH DIALOGUE PARAMETERS
.TP 20
Step
: scalar, Quantization step
.TP
Quantization method
: scalar with possible values 1,2,3 or 4
.RS
.TP
1
: Round method
.TP
2
: Truncation method
.TP
3
:
Floor method
.TP
4
:
Ceil method
.RE
.SH DESCRIPTION
This block outputs the quantization of the input according to a choice
of methods
.LP
for \fVRound\fR method 

\fVy(i)=Step*(int(u(i)/Step+0.5)-0.5)\fR if \fVu(i)<0\fR.

\fVy(i)=Step*(int(u(i)/Step-0.5)+0.5)\fR. if \fVu(i)>=0\fR.

.LP
For truncation method

\fVy(i)=Step*(int(u(i)/Step+0.5))\fR if \fVu(i)<0\fR.

\fVy(i)=Step*(int(u(i)/Step-0.5))\fR if \fVu(i)>=0\fR.

.LP
For floor method

\fVy(i)=Step*(int(u(i)/Step+0.5))\fR .

.LP
For ceil method

\fVy(i)=Step*(int(u(i)/Step-0.5))\fR .