Thanks a lot for all the replies! We managed now to solve our problem by
replacing the rand / srand functions by R's random number generator and
now the results on windows and linux agree.
Thanks again!
Klaus
Paul Gilbert wrote:
I cannot say what the problem is in your code, but in general it
I cannot say what the problem is in your code, but in general it is
possible to get the same random sequences from Linux and Windows with
R's Mersenne Twister generator. If you generate long sequences (say 10s
of thousands) and then start doing comparisons involving remainders,
like differenci
Hi
2009/5/12 Klaus Nordhausen :
> Our suspicion is that the reason is that some libraries are different
> implemented on linux and windows (XP) compilers.
If useful.
http://www.derkeiler.com/Newsgroups/sci.crypt/2004-10/1325.html
I think that you do not like to use rand and srand.
--
EI-JI Nak
Hi Klaus,
Why not just use R's random number generator? See section 6.3 of
Writing R Extensions. It should give you the same sequence of
pseudorandom numbers on all platforms.
HTH,
Kjell
On 12 mai 09, at 12:30, Klaus Nordhausen wrote:
Dear R experts,
we are preparing an R-package to com
> On Tue, 12 May 2009 13:30:21 +0300,
> Klaus Nordhausen (KN) wrote:
> Dear R experts,
> we are preparing an R-package to compute the Oja Median which contains
> some C++ code in which random numbers are needed. To generate the random
> numbers we use the following Mersenne-Twister