LTPDA Toolbox™ | contents | ![]() ![]() |
TOMFIR approximates a pole/zero model with an FIR filter. %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% DESCRIPTION: TOMFIR approximates a pole/zero model with an FIR filter. The response of the pzmodel is computed using pzmodel/resp with the additional input parameter of param('f1', 0). The final frequency in the response is set automatically from the pzmodel/resp function if not specified as an input. This upper frequency is then taken as the Nyquist frequency and the sample rate of the corresponding fsdata AO is set accordingly. The function then calls mfir() with the new fsdata AO as input. The result is an FIR filter designed to have a magnitude response equal to the magnitude response of the pole/zero model. The filter has linear phase and the phase of the pzmodel is ignored. CALL: f = tomfir(pzm) f = tomfir(pzm, plist) Parameters Description %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
Method Details | |
---|---|
Access | public |
Defining Class | pzmodel |
Sealed | 0 |
Static | 0 |
Sets for this method … |
---|
Default |
Default |
|||
---|---|---|---|
no description | |||
Key | Default Value | Options | Description |
tomfir | |||
FS | 10 | none | Frequency of the fir filter. |
F1 | 0 | none | Start frequency. |
F2 | 5 | none | Stop frequency. |
NF | 1000 | none | Number of evaluation frequencies. |
SCALE | 'lin' |
|
Spacing of frequencies:
|
Example |
---|
plist('FS', [10], 'F1', [0], 'F2', [5], 'NF', [1000], 'SCALE', 'lin') |
Some information of the method pzmodel/tomfir are listed below: | |
---|---|
Class name | pzmodel |
Method name | tomfir |
Category | Operator |
Package name | ltpda |
VCS Version | 967b0eec0dece803a81af8ef54ad2f8c784b20b2 |
Min input args | 1 |
Max input args | -1 |
Min output args | 1 |
Max output args | -1 |
Can be used as modifier | 0 |
Supported numeric types | {'double'} |
![]() |
Method: pzmodel/update | Method: pzmodel/tomiir | ![]() |
©LTP Team