trentool / TRENTOOL3

Open-Source MATLAB toolbox for transfer entropy estimation
http://trentool.github.io/TRENTOOL3/
GNU General Public License v3.0
56 stars 26 forks source link

cfg.tau number elements zero #17

Open GowthamBio opened 8 years ago

GowthamBio commented 8 years ago

I am getting following error when I trying run the code for my

Index exceeds matrix dimensions.

Error in transferentropy (line 377) currentTau = round(cfg.tau(1)*data.TEprepare.maxact)

Error in TEsurrogatestats (line 523) [TEresult] = transferentropy(cfg,data);

Error in TEfindDelay (line 59) TGA_results{uu}=TEsurrogatestats(cfgTESS,data);

My data has rms values of EEG in one row and NIRS measurements in the other

pwollstadt commented 8 years ago

Hi @GowthamBio, what did you specify for cfg.tau in your analysis?

GowthamBio commented 8 years ago

I assigned values 0.2 to 0.5 for cfg.tau. The error is "Attempted to access cfg.tau(1); index out of bounds because numel(cfg.tau)=0.". Also it is not displaying any values for optimal tau, and dimension for the data set. Is this because the range specified for cfg.tau incompatible for my dataset?

mwibral commented 8 years ago

Hi,

it's possible, that there is a bug when using cfg. tau instead of using
a range for the tau values and then a number of steps in that range - could you check whether the functions work for you with range and steps as described in the manual.

Thanks, Michael

On 03.03.2016 09:56, GowthamBio wrote:

I assigned values 0.2 to 0.5 for cfg.tau. The error is "Attempted to access cfg.tau(1); index out of bounds because numel(cfg.tau)=0.". Also it is not displaying any values for optimal tau, and dimension for the data set. Is this because the range specified for cfg.tau incompatible for my dataset?

— Reply to this email directly or view it on GitHub https://github.com/trentool/TRENTOOL3/issues/17#issuecomment-191480941.