File: remez.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 (34 lines) | stat: -rw-r--r-- 863 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
REMEZ            Scilab Group            Scilab Function              REMEZ
NAME
   remez - Remez's algorithm
  
CALLING SEQUENCE
 [an]=remez(nc,fg,ds,wt)
PARAMETERS
 nc   : integer, number of cosine functions
      
 fg,ds,wt
       : real vectors
      
 fg   : grid of frequency points in [0,.5)
      
 ds   : desired magnitude on grid fg
      
 wt   : weighting function on error on grid fg
      
DESCRIPTION
   minimax approximation of a frequency domain magnitude response. The
  approximation takes the form
  
  h = sum[a(n)*cos(wn)]
   for n=0,1,...,nc. An FIR, linear-phase filter can be obtained from the
  the output of remez by using the following commands:
  
                  hn(1nc-1)=an(nc-12)/2;
                  hn(nc)=an(1);
                  hn(nc+12*nc-1)=an(2nc)/2;
   where an = cosine filter coefficients
  
SEE ALSO
   remezb