man.diff

来自「speech signal process tools」· DIFF 代码 · 共 147 行

DIFF
147
字号
.\" Copyright (c) 1993 Entropic Research Laboratory, Inc.; All rights reserved.\" @(#)win_filt.1	1.6 9/1/98 ERL.ds ]W (c) 1993 Entropic Research Laboratory, Inc..TH  WIN_FILT 1\-ESPS 9/1/98.SH NAME.nfwin_filt \- Designs a FIR filter using Kaiser Windowing.fi.SH SYNOPSIS.Bwin_filt.BI \-P " param_file"[.BI \-x " debug_level"]file.filter.SH DESCRIPTIONThe program \fIwin_filt\fR designs a linear-phase finite-impulse response(FIR) filter with its specifications defined in the parameter file \fIparam_file\fR.  The filter coefficients are saved in the output file\fIfile.filter\fR.  If \fIfile.filter\fR is replaced by "-", the standard output is written..PPThe design method is based on the Kaiser Window -- a \fIsinc\fR functionrepresenting the ideal response is multiplied by a Kaiser window to obtain afinite length filter.  Type I (symmetric and odd) and type II (symmetricand even) multiband filter design are supported..PPAlso see the shell script \fIxfir_filt(1-ESPS)\fR that is a coverscript for this and other FIR filter design program.  .PPUse \fIfiltspec(1-ESPS)\fR to compute the actual filter response; use\fIplotspec(1-ESPS)\fR to view the response.  For example, .PP\fIfiltspec file.filter - | plotspec -\fR.PPThe number of output filter taps is determined automatically by \fIwin_filt\fR in order to meet the design specification..SH OPTIONS.PPThe following options are supported:.TP.BI \-P " param_file \fR[params]\fP"uses the parameter file .I param_filerather than the default, which is \fIparams\fP. .TP.BI \-x " debug_level \fR[0]\fP"If .I debug_levelis positive,.I win_filtprints debugging messages and other information on the standard erroroutput.  The messages proliferate as the  .I debug_levelincreases.  If \fIdebug_level\fP is 0 (the default), no messages areprinted.  .SH ESPS PARAMETERSThe following parameters are read from the \fIparam_file\fR..TP.I samp_freq - floatSpecifies the sampling frequency of the filter.  This number is usedfor scaling the values of \fIband_edge[i]\fR parameters..TP.I nbands - intSpecifies the number of bands.  For example, for a bandpass filter, \fInbands\fR is \fI3\fR..TP.I band_edge[i] - floatSpecifies the \fIi\fRth cutoff frequency in Hz.  There are \fInbands+1\fR\fIband_edge[i]\fR parameters.  The first \fIband_edge1\fR muststart with 0, and the last frequency must end with the Nyquist rate.The cutoff frequency is in the center of the region specified by\fItrans_band\fR.For example, for a 8KHz bandpass filter with stopband of 0 to 800 Hzand 2200 to 4000 Hz, and passband of 1200 to 1800 Hz, the parameter \fIBand_edge1\fR is 0, \fIband_edge2\fR is 1000,\fIband_edge3\fR is 2000, \fIband_edge4\fR is 4000, and\fItrans_band\fR is 400.  Typically, the filter is 6 dB down at theband edge of transition..TP.I band[i]_des - floatSpecifies desired value for the \fIi\fRth band.  For example, fora 3-band bandpass filter, \fIband1_des\fR is 0, \fIband2_des\fR is 1,and \fIband3_des\fR is 0;.TP.I rej_db - floatSpecifies both the rejection ratio in dB from one passband tostopband, and the peak error in the passband..TP.I trans_band - floatSpecifies the transition bandwidth in Hz from one band to another..TP.I evenflag - intThis is an optional parameter.  If not specified, by default \fIwin_filt\fRdesigns a filter with odd filter length; otherwise, a value of 1 forceseven length, and a value of 0 forces odd length..PP.SH ESPS COMMONNo ESPS common parameter processing is used..PP.SH ESPS HEADERSA new \fIFEA_FILT\fP(5\-ESPS) header is created for the  output  file.   Theprogram  fills  in  appropriate values in the common part ofthe FEA_FILT header as well as the  following  generic  header  items..PPThe \fIsamp_freq\fR generic header item contains value of the \fIsamp_freq\fRparameter..PPThe \fItrans_band\fR generic header item contains value of the \fItrans_band\fRparameter..PPThe \fIrej_db\fR generic header item contains value of the \fIrej_db\fRparameter..PPIn addition, the generic header item \fIdelay_samples\fR  (type  DOUBLE) isadded  to the header. \fIDelay_samples\fR  is  equal  to  (filter length  -  1)/2.   This represents  the  delay  to  the  center  of  the peak of theimpulse response..PP.SH FUTURE CHANGES.PP.SH EXAMPLES.PP.SH ERRORS AND DIAGNOSTICS.PP.SH BUGS.PPNone known..SH REFERENCESOppenheim & Schafer, \fIDiscrete-Time Signal Processing\fR,Prentice Hall, 1989.PP.SH "SEE ALSO".nf\fIxfir_filt\fP(1\-ESPS), \fInotch_filt\fP(1\-ESPS), \fIFEA_FILT\fP(5\-ESPS),\fIatofilt\fP(1\-ESPS), \fIwmse_filt\fP(1\-ESPS), \fIiir_filt\fP(1\-ESPS), \fIsfconvert\fP(1\-ESPS), \fIpkmc_filt\fP(1\-ESPS), .nf.PP.SH AUTHORDerek Lin.PP

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?