[FieldTrip] User-defined random seed in ft_componentanalysis (runica)

Holger Krause Holger.Krause at med.uni-duesseldorf.de
Mon Jul 11 17:16:00 CEST 2016


Am Montag, 11. Juli 2016, 15:39:54 schrieb Stephen Whitmarsh:
> Hi there,
> 
> I have a question about the use of the cfg.randomseed option in
> ft_componentanalysis. I would like to be able to use the same seed over
> different iterations of ft_componentanalysis, which should result in the
> same output.
> 
> Can anyone confirm this is actually the case? I cannot see how
> cfg.randomseed is passed through to runica.m, and line 812 (runica.m) reads:
> 
> rand('state',sum(100*clock));  % set the random number generator state to
>                                % a position dependent on the system clock

Hi Stephen,

That's a known bug, which has been fixed last year (see 
http://bugzilla.fcdonders.nl/show_bug.cgi?id=2585). Should you need to stick 
to an older version of FT, it might be sufficient to disable the line you 
mentioned above. If I remember correctly, FT will handle setting the random 
seed elsewhere. (So there's no need to pass through 'cfg.randomseed'.)

Best,

Holger

-- 
Dr. rer. nat. Holger Krause                                         MEG-Labor
                     Institut für klinische Neurowissenschaften
http://www.uniklinik-duesseldorf.de/klinneurowiss        Uniklinik Düsseldorf





More information about the fieldtrip mailing list