File: remez.cat

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 (34 lines) | stat: -rw-r--r-- 828 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(G)                       Scilab Function                       REMEZ(G)
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