[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: cellfun and parcellfun
From: |
Robert Patterson |
Subject: |
Re: cellfun and parcellfun |
Date: |
Mon, 14 Jun 2010 12:14:34 +0100 |
On Fri, 2010-06-11 at 23:28 +0200, David Bateman wrote:
> It should be
> relatively easy to do this except for the care needed with the fact that
> the randlib generators all use the same state and the mersenne twister
> based generators have separate states and so rand("state", "reset")
> should change only the uniform generators state, but rand("seed",
> "reset") should change all of them.
>
I think I am doing something pretty stupid in trying to reset my RNGs:
octave:187> rand("state", 123); rande()
ans = 0.042798
octave:188> rand("state", 123); rande()
ans = 0.49064
octave:189> rand("state", 123); rande()
ans = 4.2087
I was expecting to get the same value each time. Is the hash used to
initialise the Mersenne Twister non-deterministic?
Thanks
Robert
- cellfun and parcellfun, Robert Patterson, 2010/06/10
- Re: cellfun and parcellfun, Jaroslav Hajek, 2010/06/10
- Re: cellfun and parcellfun, David Bateman, 2010/06/10
- Re: cellfun and parcellfun, Robert I A Patterson, 2010/06/11
- Re: cellfun and parcellfun, David Bateman, 2010/06/11
- Re: cellfun and parcellfun, Jaroslav Hajek, 2010/06/14
- Re: cellfun and parcellfun,
Robert Patterson <=
- Re: cellfun and parcellfun, David Bateman, 2010/06/14
- Re: cellfun and parcellfun, Robert Patterson, 2010/06/14
- Re: cellfun and parcellfun, David Bateman, 2010/06/14
- Re: cellfun and parcellfun, Robert Patterson, 2010/06/15
- Re: cellfun and parcellfun, David Bateman, 2010/06/15
- Re: cellfun and parcellfun, John W. Eaton, 2010/06/15
- Message not available
- Message not available
- Re: cellfun and parcellfun, David Bateman, 2010/06/15