Name
filt_params - using the FSC curve establish two frequencies: stop-band, corresponding to the point where the curves drops below predefined high value, and pass-band, corresponding to the point where the curves drops below predefined low value
Usage
freql, freqh = filt_params(dres, [high, low])
The parameters are meant to be used with the Butterworth low pass filter filt_btwl
Note: it is assumed that the FSC curve was calculated from the dataset split into halves, so the high and low values relate to the values of the FSC curve adjusted using `r_f = 2r/(1+r)`
Input
- dres
- output of the fsc command
- high
- high value of the FSC curve, will correspond to stop-band frequency (default 0.95)
- low
- low value of the FSC curve, will correspond to pass-band frequency (default 0.1) note: high and low values are optional.
Output
- freql
- stop-band frequency
- freqh
- pass-band frequency
Author / Maintainer
Pawel A. Penczek
Keywords
- category 1
- FILTER
Files
filter.py
See also
Maturity
- beta
- works for author, often works for others.
Bugs
For very strange FSC curves it may fail, better to print and verify the results.