This shows you the differences between two versions of the page.

Link to this comparison view

reference:ft_preproc_polyremoval [2018/08/23 14:43] (current)
Line 1: Line 1:
 +Note that this reference documentation is identical to the help that is displayed in MATLAB when you type "help ft_preproc_polyremoval"​.
 +  <a href=/​reference/​ft_preproc_polyremoval><​font color=green>​FT_PREPROC_POLYREMOVAL</​font></​a>​ removed an Nth order polynomal from the data
 +  Use as
 +    dat = ft_preproc_polyremoval(dat,​ order, begsample, endsample, flag)
 +  where
 +    dat        data matrix (Nchans X Ntime)
 +    order      the order of the polynomial
 +    begsample ​ index of the begin sample for the estimate of the polynomial
 +    endsample ​ index of the end sample for the estimate of the polynomial
 +    flag       ​optional boolean to specify whether the first order basis
 +               ​vector will zscored prior to computing higher order basis
 +               ​vectors from the first-order basis vector (and the beta
 +               ​weights). This is to avoid numerical problems with the
 +               ​inversion of the covariance when the polynomial is of high
 +               ​order/​number of samples is large
 +  If begsample and endsample are not specified, it will use the whole
 +  window to estimate the polynomial.
 +  For example
 +    ft_preproc_polyremoval(dat,​ 0)
 +  removes the mean value from each channel and
 +    ft_preproc_polyremoval(dat,​ 1)
 +  removes the mean and the linear trend.
 +  See also <a href=/​reference/​ft_preproc_baselinecorrect><​font color=green>​FT_PREPROC_BASELINECORRECT</​font></​a>,​ <a href=/​reference/​ft_preproc_detrend><​font color=green>​FT_PREPROC_DETREND</​font></​a>​