%% set paths
addpath('D:/TE/TRENTOOL3-master')
addpath('D:/TE/fieldtrip-20150422');
ft_defaults;
%% define data paths
OutputDataPath = 'D:/';
InputDataPath = 'exampledata/lorenz_1-2_45ms.mat';
load(InputDataPath);
%% define cfg for TEprepare.m
cfgTEP = [];
% data
cfgTEP.toi = [min(data.time{1,1}),max(data.time{1,1})]; % time of interest
cfgTEP.sgncmb = {'A1' 'A2'}; % channels to be analyzed
% scanning of interaction delays u
cfgTEP.predicttimemin_u = 40; % minimum u to be scanned
cfgTEP.predicttimemax_u = 50; % maximum u to be scanned
cfgTEP.predicttimestepsize = 1; % time steps between u's to be scanned
% estimator
cfgTEP.TEcalctype = 'VW_ds';