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

Schoffelen, J.M. (Jan Mathijs) jan.schoffelen at donders.ru.nl
Mon Jul 11 17:06:23 CEST 2016

Hi Stephen,

The fieldtrip-version of runica (in fieldtrip/external/eeglab/runica) allows for a user-specified setting reset_randomseed, that can be passed on from the higher level function (i.e. ft_componentanalysis). This way the user can pass on a predefined random seed, allowing for deterministic behaviour of runica upon different function calls. This has been changed about a year ago. Time to update your fieldtrip copy?



> On 11 Jul 2016, at 15:39, Stephen Whitmarsh <stephen.whitmarsh at gmail.com> wrote:
> 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
> Best,
> Stephen
> _______________________________________________
> fieldtrip mailing list
> fieldtrip at donders.ru.nl
> https://mailman.science.ru.nl/mailman/listinfo/fieldtrip

More information about the fieldtrip mailing list