On Mon, Jun 4, 2012 at 12:03 AM, Mathieu Dubois <
address@hidden > wrote:
Hello,
I want to comapre the output of the Self-Organinzin Map algorithm under Matlab and Octave.
The algorithm is stochastic because, as in most training algorithm, the data are presented inrandom order.
In order to compare as precisely as possible the Matlab and Octave version it seems necessary to have the same sequence of random numbers.
Is there a way to do that?
I have tried the following:
rand('twister', 10);
s = rand(10, 1);
disp(s);
disp(mean(s));
disp(var(s));
The sequences are different (but the statistics are close).
Mathieu
______________________________ _________________
Help-octave mailing list
address@hidden
https://mailman.cae.wisc.edu/ listinfo/help-octave
--
Blog:
http://amca01.wordpress.com
Web:
http://sites.google.com/site/amca01/
Facebook:
http://www.facebook.com/alasdair.mcandrew