Differences

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

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
reference:ft_interpolatenan [2013/08/28 12:25]
131.174.45.108
reference:ft_interpolatenan [2018/08/23 14:43] (current)
Line 1: Line 1:
-===== FT_INTERPOLATENAN ===== +=====  FT_INTERPOLATENAN =====
-Note that this reference documentation is identical to the help that is displayed in Matlab when you type “help [[reference:​ft_interpolatenan|FT_INTERPOLATENAN]]”.+
  
-<code+Note that this reference documentation is identical to the help that is displayed in MATLAB when you type "help ft_interpolatenan"​. 
-[[reference:​FT_INTERPOLATENAN|FT_INTERPOLATENAN]] interpolates ​data that contains segments of nans + 
-  ​obtained ​by replacing artifactual data with nans using, for example, FT_REJECTARTIFACT,​ +<html><​pre
-  ​or by redefining trials with FT_REDEFINETRIAL resulting in trials with +  <a href=/reference/​ft_interpolatenan><​font color=green>​FT_INTERPOLATENAN</​font></​a> ​interpolates ​time series ​that contains segments of nans obtained 
-  ​gaps.+  by replacing artifactual data with nans using, for example, ​<a href=/​reference/​ft_rejectartifact><​font color=green>​FT_REJECTARTIFACT</​font></​a>​or 
 +  by redefining trials with <a href=/​reference/​ft_redefinetrial><​font color=green>​FT_REDEFINETRIAL</​font></​a> ​resulting in trials with gaps.
    
   Use as   Use as
-   outdata = ft_interpolatenan(cfg,​ indata)  +    ​outdata = ft_interpolatenan(cfg,​ indata) 
-  where indata ​is data as obtained from [[reference:​FT_PREPROCESSING|FT_PREPROCESSING]]  +  where cfg is a configuration structure and the input data is obtained from <a href=/reference/​ft_preprocessing><​font color=green>​FT_PREPROCESSING</​font></​a>.
-  and cfg is configuratioun structure that should contain ​+
    
-   ​cfg.method ​     = string, interpolation method, see HELP INTERP1 (default = '​linear'​) +  The configuration should contain 
-   ​cfg.prewindow ​  = value, length of data prior to interpolation window, in seconds (default = 1) +    ​cfg.method ​     = string, interpolation method, see HELP INTERP1 (default = '​linear'​) 
-   ​cfg.postwindow ​ = value, length of data after interpolation window, in seconds (default = 1)+    cfg.prewindow ​  = value, length of data prior to interpolation window, in seconds (default = 1) 
 +    cfg.postwindow ​ = value, length of data after interpolation window, in seconds (default = 1
 +    cfg.feedback ​   = string, '​no',​ '​text',​ '​textbar',​ '​gui'​ (default = '​text'​)
    
 +  This function only interpolates over time, not over space. If you want to
 +  interpolate using spatial information,​ e.g. using neighbouring channels, you should
 +  use <a href=/​reference/​ft_channelrepair><​font color=green>​FT_CHANNELREPAIR</​font></​a>​.
    
   To facilitate data-handling and distributed computing with the peer-to-peer   To facilitate data-handling and distributed computing with the peer-to-peer
Line 27: Line 31:
   input/​output structure.   input/​output structure.
    
-  See also [[reference:ft_rejectartifact|FT_REJECTARTIFACT]][[reference:ft_redefinetrial|FT_REDEFINETRIAL]] +  See also <a href=/reference/ft_rejectartifact><​font color=green>​FT_REJECTARTIFACT</​font></​a>​<a href=/reference/ft_redefinetrial><​font color=green>​FT_REDEFINETRIAL</​font></​a>,​ <a href=/​reference/​ft_channelrepair><​font color=green>​FT_CHANNELREPAIR</​font></​a>​ 
-  </code>+</pre></​html>​