File: group.cat

package info (click to toggle)
scilab 2.6-4
  • links: PTS
  • area: non-free
  • in suites: woody
  • size: 54,632 kB
  • ctags: 40,267
  • sloc: ansic: 267,851; fortran: 166,549; sh: 10,005; makefile: 4,119; tcl: 1,070; cpp: 233; csh: 143; asm: 135; perl: 130; java: 39
file content (46 lines) | stat: -rw-r--r-- 1,454 bytes parent folder | download
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
group            Scilab Group            Scilab Function              group
NAME
   group - group delay for digital filter
  
CALLING SEQUENCE
 [tg,fr]=group(npts,a1i,a2i,b1i,b2i)
PARAMETERS
 npts       : integer : number of points desired in calculation of group
            delay
            
 a1i        : in coefficient, polynomial, rational polynomial, or cascade
            polynomial form this variable is the transfer function of the
            filter. In coefficient polynomial form this is a vector of
            coefficients (see below).
            
 a2i        : in coeff poly form this is a vector of coeffs
            
 b1i        : in coeff poly form this is a vector of coeffs
            
 b2i        : in coeff poly form this is a vector of coeffs
            
 tg         : values of group delay evaluated on the grid fr
            
 fr         : grid of frequency values where group delay is evaluated
            
DESCRIPTION
   Calculate the group delay of a digital filter with transfer function
  h(z).
  
   The filter specification can be in coefficient form, polynomial form,
  rational polynomial form, cascade polynomial form, or in coefficient
  polynomial form.
  
   In the coefficient polynomial form the transfer function is formulated by
  the following expression
  
    h(z)=prod(a1i+a2i*z+z**2)/prod(b1i+b2i*z+z^2)
  
EXAMPLE
 z=poly(0,'z');
 h=z/(z-.5);
 [tg,fr]=group(100,h);
 plot(fr,tg)
AUTHOR
   C. B.