----------------------------------------------------------------------------- EEP 3.1 Max-Planck-Institute of Cognitive Neuroscience 1996-99 cntfilter 3.16 (OSF1 V4.0 alpha) Wed Sep 15 13:30:22 1999 ----------------------------------------------------------------------------- cntfilter <source cnt> [<dest cnt>] [<trg in>] <fir in> [-c <regex>] options: -c <regex> filter selected channels files: foo.cnt -> foof.cnt foo.trg
cntfilter
reads a precalculated finite impulse response from a textfile
(*.fir) and applies this Finite Impulse Response Filter to the cnt file.
Filters can be designed with the xfir
module.
Some filters are available in the
fir
directory.
There is a parallelized version (cntfilter_mp
) installed at the origin.
It can increase the performance by a factor 2..3 for long filters (> 500 points)
but should not be used for short filters. If you have to filter multiple files,
it is faster to start, say, 4 sequential cntfilter
jobs in parallel
than 4 parallel cntfilter_mp
jobs in sequence.
At each epoch limit, the signal is virtually extendend by a constant signal of (Ncoeffs - 1) / 2 samples. This means that the edges of a filtered signal epoch are not influenced by the signal values of the previous/next epoch. Of course, the edges are influenced by the artificial constant signal.
In the case of record start, record stop and discontinuity("__" trigger), the
first, respectively the last, sample value is used to extend the signal. The
signal values near DC reset positions are normally trash and a bad
choice to estimate the past/future of the recorded signal. Therefore,
the signal value of reset_time -/+ 15 ms is used to extend the signal.
There are options -l <ms>
and -r <ms>
to override the 15 ms
builtin.