Re: [Rng] New XoShiRo generators

2019-03-21 Thread Alex Herbert
On 21/03/2019 15:13, Gilles Sadowski wrote: [...] If the user forgets to supply one, the program outputs one, and stops; then the user reissues the command? Yes: > java -jar examples-stress.jar -h Print something helpful > java -jar examples-stress.jar --template Print a template ge

Re: [Rng] New XoShiRo generators

2019-03-21 Thread Gilles Sadowski
> [...] > >>> If the user forgets to supply one, the program outputs one, and stops; > >>> then the user reissues the command? > >> Yes: > >> > >> > java -jar examples-stress.jar -h > >> > >> Print something helpful > >> > >> > java -jar examples-stress.jar --template > >> > >> Print a tem

Re: [Rng] New XoShiRo generators

2019-03-21 Thread Alex Herbert
On 21/03/2019 13:45, Gilles Sadowski wrote: Hello. [...] If the user forgets to supply one, the program outputs one, and stops; then the user reissues the command? Yes: > java -jar examples-stress.jar -h Print something helpful > java -jar examples-stress.jar --template Print a templ

Re: [Rng] New XoShiRo generators

2019-03-21 Thread Gilles Sadowski
Hello. >>>[...] > > If the user forgets to supply one, the program outputs one, and stops; > > then the user reissues the command? > > Yes: > > > java -jar examples-stress.jar -h > > Print something helpful > > > java -jar examples-stress.jar --template > > Print a template generators list to st

Re: [Rng] New XoShiRo generators

2019-03-21 Thread Alex Herbert
On 21/03/2019 02:08, Gilles Sadowski wrote: undefined Le mer. 20 mars 2019 à 21:39, Alex Herbert a écrit : On 20 Mar 2019, at 18:22, Gilles Sadowski wrote: [...] Perhaps the "RandomStressTester" should be made more flexible and, instead of a hard-coded "GeneratorsList", accept a list of

Re: [Rng] New XoShiRo generators

2019-03-20 Thread Gilles Sadowski
undefined Le mer. 20 mars 2019 à 21:39, Alex Herbert a écrit : > > > > > On 20 Mar 2019, at 18:22, Gilles Sadowski wrote: > > > >>> [...] > >>> Perhaps the "RandomStressTester" should be made more flexible > >>> and, instead of a hard-coded "GeneratorsList", accept a list of "enum" > >>> identifi

Re: [Rng] New XoShiRo generators

2019-03-20 Thread Alex Herbert
> On 20 Mar 2019, at 18:22, Gilles Sadowski wrote: > >>> [...] >>> Perhaps the "RandomStressTester" should be made more flexible >>> and, instead of a hard-coded "GeneratorsList", accept a list of "enum" >>> identifiers. e.g. a list (ASCII file) like: >>> MT 3 >>> MT_64 3 >>> SPLIT_MIX_64 3 >>>

Re: [Rng] New XoShiRo generators

2019-03-20 Thread Gilles Sadowski
>> [...] > > Perhaps the "RandomStressTester" should be made more flexible > > and, instead of a hard-coded "GeneratorsList", accept a list of "enum" > > identifiers. e.g. a list (ASCII file) like: > > MT 3 > > MT_64 3 > > SPLIT_MIX_64 3 > > [etc.] > > where the second columns indicates how many ru

Re: [Rng] New XoShiRo generators

2019-03-20 Thread Alex Herbert
On 20/03/2019 16:13, Gilles Sadowski wrote: Le mer. 20 mars 2019 à 15:04, Alex Herbert a écrit : On 20/03/2019 13:08, Gilles Sadowski wrote: - Perhaps there is another place for them? I am happy to not clutter the source repo and keep them somewhere for devs. But where? You tell me. Maybe

Re: [Rng] New XoShiRo generators

2019-03-20 Thread Gilles Sadowski
Le mer. 20 mars 2019 à 15:04, Alex Herbert a écrit : > > > On 20/03/2019 13:08, Gilles Sadowski wrote: > > > >> - Perhaps there is another place for them? > >> > >> I am happy to not clutter the source repo and keep them somewhere for > >> devs. But where? You tell me. Maybe in the examples-stress

Re: [Rng] New XoShiRo generators

2019-03-20 Thread Alex Herbert
On 20/03/2019 11:14, Gilles Sadowski wrote: I have updated the PR for the XorShift1024 variant to deprecate the old XOR_SHIFT_1024_S enum. Please take a look to see if the wording is OK: https://github.com/apache/commons-rng/pull/30/files#diff-630495e26d73fa22ada841dabde0ab47

Re: [Rng] New XoShiRo generators

2019-03-20 Thread Alex Herbert
On 20/03/2019 13:08, Gilles Sadowski wrote: - Perhaps there is another place for them? I am happy to not clutter the source repo and keep them somewhere for devs. But where? You tell me. Maybe in the examples-stress module they are OK as that one is not officially part of the library. Unles

Re: [Rng] New XoShiRo generators

2019-03-20 Thread Gilles Sadowski
>> [...] > > I was thinking of a utility for taking the output (of several runs) of > > the test > > suites and generate the table in "apt" format (with correct links). > > I previously did a lot of this when testing the cache of the int and > boolean values. I could not find the scripts on local m

Re: [Rng] New XoShiRo generators

2019-03-20 Thread Gilles Sadowski
Hi Alex. Le mer. 20 mars 2019 à 01:32, Alex Herbert a écrit : > > > > > On 19 Mar 2019, at 15:24, Gilles Sadowski wrote: > >> > >> I am currently rerunning the dieharder test for the XorShift1024Star > >> composites since that requires a little endian format on my machine. So > >> far there are

Re: [Rng] New XoShiRo generators

2019-03-19 Thread Alex Herbert
> On 19 Mar 2019, at 15:24, Gilles Sadowski wrote: >> >> I am currently rerunning the dieharder test for the XorShift1024Star >> composites since that requires a little endian format on my machine. So >> far there are not as many failures when the byte order is reversed. >> >> Once that is don

Re: [Rng] New XoShiRo generators

2019-03-19 Thread Alex Herbert
Forwarded to mailing list. Forwarded Message Subject:Re: [Rng] New XoShiRo generators Date: Tue, 19 Mar 2019 16:20:23 + From: Alex Herbert To: Gilles Sadowski On 19/03/2019 15:24, Gilles Sadowski wrote: Hello. [...] Given all the stress tests will

Re: [Rng] New XoShiRo generators

2019-03-19 Thread Gilles Sadowski
Hello. > > [...] > Given all the stress tests will be rerun shall I go ahead and reorder > the existing files, user guide .apt file and the GeneratorsList to be in > the order of the RandomSource enum? > >>> We could wait for the new results before updating the site. > >> I wa

Re: [Rng] New XoShiRo generators

2019-03-19 Thread Alex Herbert
On 19/03/2019 11:38, Gilles Sadowski wrote: Le mar. 19 mars 2019 à 10:26, Alex Herbert a écrit : On 19 Mar 2019, at 10:35, Gilles Sadowski wrote: [...] Given all the stress tests will be rerun shall I go ahead and reorder the existing files, user guide .apt file and the GeneratorsList

Re: [Rng] New XoShiRo generators

2019-03-19 Thread Gilles Sadowski
Le mar. 19 mars 2019 à 10:26, Alex Herbert a écrit : > > > > > On 19 Mar 2019, at 10:35, Gilles Sadowski wrote: > > > >>> [...] > >> > >> Given all the stress tests will be rerun shall I go ahead and reorder the > >> existing files, user guide .apt file and the GeneratorsList to be in the > >>

Re: [Rng] New XoShiRo generators

2019-03-19 Thread Alex Herbert
> On 19 Mar 2019, at 10:35, Gilles Sadowski wrote: > >>> [...] So leave the testing to just ints and document on the user guide that is what we are testing. >>> >>> +1 >> >> OK. That seems simplest. >> >> Given all the stress tests will be rerun shall I go ahead and reorder the >>

Re: [Rng] New XoShiRo generators

2019-03-19 Thread Gilles Sadowski
> > [...] > >> So leave the testing to just ints and document on the user guide that is > >> what we are testing. > > > > +1 > > OK. That seems simplest. > > Given all the stress tests will be rerun shall I go ahead and reorder the > existing files, user guide .apt file and the GeneratorsList to b

Re: [Rng] New XoShiRo generators

2019-03-18 Thread Alex Herbert
> On 18 Mar 2019, at 19:27, Gilles Sadowski wrote: > > Le lun. 18 mars 2019 à 16:49, Alex Herbert > a écrit : >> >> >> On 18/03/2019 14:12, Gilles Sadowski wrote: >>> Hi. >>> >> [...] >> >> One actual issue is that we are testing long providers

Re: [Rng] New XoShiRo generators

2019-03-18 Thread Gilles Sadowski
Le lun. 18 mars 2019 à 16:49, Alex Herbert a écrit : > > > On 18/03/2019 14:12, Gilles Sadowski wrote: > > Hi. > > > [...] > > One actual issue is that we are testing long providers using the long to > create 2 int values. Should we test using a series of the upper 32 bits >

Re: [Rng] New XoShiRo generators

2019-03-18 Thread Alex Herbert
On 18/03/2019 14:12, Gilles Sadowski wrote: Hi. [...] One actual issue is that we are testing long providers using the long to create 2 int values. Should we test using a series of the upper 32 bits and then a series of the lower 32 bits? Is that useful since the test now sees the integer

Re: [Rng] New XoShiRo generators

2019-03-18 Thread Gilles Sadowski
Hi. >>> [...] > >> > >> One actual issue is that we are testing long providers using the long to > >> create 2 int values. Should we test using a series of the upper 32 bits > >> and then a series of the lower 32 bits? > > > > Is that useful since the test now sees the integers as they are produ

Re: [Rng] New XoShiRo generators

2019-03-18 Thread Alex Herbert
> On 18 Mar 2019, at 10:20, Gilles Sadowski wrote: > > Le dim. 17 mars 2019 à 01:01, Alex Herbert > a écrit : >> >> >> >>> On 16 Mar 2019, at 23:10, Alex Herbert >> > wrote: >>> >>> >>> On 16 Mar 2019, at 02:54, Gille

Re: [Rng] New XoShiRo generators

2019-03-18 Thread Gilles Sadowski
Le dim. 17 mars 2019 à 01:01, Alex Herbert a écrit : > > > > > On 16 Mar 2019, at 23:10, Alex Herbert wrote: > > > > > > > >> On 16 Mar 2019, at 02:54, Gilles Sadowski >> > wrote: > >>> This is read by dieharder which directly reads from stdin. This worked to > >>>

Re: [Rng] New XoShiRo generators

2019-03-16 Thread Alex Herbert
> On 16 Mar 2019, at 23:10, Alex Herbert wrote: > > > >> On 16 Mar 2019, at 02:54, Gilles Sadowski > > wrote: >>> This is read by dieharder which directly reads from stdin. This worked to >>> collect all the generated bits and the serial and xor composites failed

Re: [Rng] New XoShiRo generators

2019-03-16 Thread Alex Herbert
> On 16 Mar 2019, at 02:54, Gilles Sadowski wrote: >> This is read by dieharder which directly reads from stdin. This worked to >> collect all the generated bits and the serial and xor composites failed the >> test suite. >> >> It is also read by the stdin2testu01.c program to pass to TestU01

Re: [Rng] New XoShiRo generators

2019-03-15 Thread Gilles Sadowski
Le ven. 15 mars 2019 à 19:03, Alex Herbert a écrit : > > PS. Did you try this test program to check the size of the unsigned long? I'm on 64-bits Debian GNU/Linux, so... sizeof(int) = 4 sizeof(long) = 8 sizeof(unsigned long) = 8 sizeof(uint32_t) = 4 sizeof(double) = 8 [... same as yours, below .

Re: [Rng] New XoShiRo generators

2019-03-15 Thread Gilles Sadowski
Hi. Le ven. 15 mars 2019 à 19:00, Alex Herbert a écrit : > > > > > On 15 Mar 2019, at 17:37, Gilles Sadowski wrote: > > > > Hi Alex. > > > > Le ven. 15 mars 2019 à 14:08, Alex Herbert a > > écrit : > >> > >> FYI. > >> > >>> I am going to update stdin2testu01.c so that it passes all the input b

Re: [Rng] New XoShiRo generators

2019-03-15 Thread Alex Herbert
PS. Did you try this test program to check the size of the unsigned long? > > > The c standard for long states that it can be 32-bits or more! So to check > what happens on my 64-bit test machine: > > #include > #include > #include > > int main(void){ > printf("sizeof(int) = %d\n", (in

Re: [Rng] New XoShiRo generators

2019-03-15 Thread Alex Herbert
> On 15 Mar 2019, at 17:37, Gilles Sadowski wrote: > > Hi Alex. > > Le ven. 15 mars 2019 à 14:08, Alex Herbert a écrit > : >> >> FYI. >> >>> I am going to update stdin2testu01.c so that it passes all the input bits >>> to TestU01 and try again. >>> >>> I’ve read some of the code and manu

Re: [Rng] New XoShiRo generators

2019-03-15 Thread Gilles Sadowski
Hi Alex. Le ven. 15 mars 2019 à 14:08, Alex Herbert a écrit : > > FYI. > > > I am going to update stdin2testu01.c so that it passes all the input bits > > to TestU01 and try again. > > > > I’ve read some of the code and manual of TestU01 and the values that are > > returned from the unif01_Gen-

Re: [Rng] New XoShiRo generators

2019-03-15 Thread Alex Herbert
FYI. > I am going to update stdin2testu01.c so that it passes all the input bits to > TestU01 and try again. > > I’ve read some of the code and manual of TestU01 and the values that are > returned from the unif01_Gen->GetBits method (unsigned long) are assumed to > be 32-bit unsigned. So I thi

Re: [Rng] New XoShiRo generators

2019-03-15 Thread Alex Herbert
> On 14 Mar 2019, at 14:10, Alex Herbert wrote: > > Sorry, my earlier message was truncated. > > On 13/03/2019 18:31, Gilles Sadowski wrote: >> >>> I ran: >>> >>> XorShiftXorComposite: XorComposite using XorShift1024Star + >>> XorShift1024StarPhi with the same seed >>> >>> XorShiftSerialComp

Re: [Rng] New XoShiRo generators

2019-03-14 Thread Alex Herbert
Sorry, my earlier message was truncated. On 13/03/2019 18:31, Gilles Sadowski wrote: I ran: XorShiftXorComposite: XorComposite using XorShift1024Star + XorShift1024StarPhi with the same seed XorShiftSerialComposite: SerialComposite using XorShift1024Star + XorShift1024StarPhi with the same s

Re: [Rng] New XoShiRo generators

2019-03-14 Thread Alex Herbert
On 13/03/2019 18:31, Gilles Sadowski wrote: Dieharder did eventually finish the first 8 runs. Perhaps the test took a long time to determine if it was a pass/fail since it was borderline. Anyway they all eventually failed that test. I tried the following: XorComposite: A composite of two rngs

Re: [Rng] New XoShiRo generators

2019-03-13 Thread Gilles Sadowski
Hello Alex. Le mer. 13 mars 2019 à 15:37, Alex Herbert a écrit : > > On 13/03/2019 02:20, Gilles Sadowski wrote: > > Le mar. 12 mars 2019 à 22:34, Alex Herbert a > > écrit : > >> > >> > >>> On 12 Mar 2019, at 17:12, Gilles Sadowski wrote: > >>> > >>> [Replying to list.] > >>> > >>> Le mar. 12

Re: [Rng] New XoShiRo generators

2019-03-13 Thread Alex Herbert
On 13/03/2019 02:20, Gilles Sadowski wrote: Le mar. 12 mars 2019 à 22:34, Alex Herbert a écrit : On 12 Mar 2019, at 17:12, Gilles Sadowski wrote: [Replying to list.] Le mar. 12 mars 2019 à 15:39, Alex Herbert mailto:alex.d.herb...@gmail.com>> a écrit : On 12/03/2019 15:33, Gilles Sadows

Re: [Rng] New XoShiRo generators

2019-03-12 Thread Gilles Sadowski
Le mar. 12 mars 2019 à 22:34, Alex Herbert a écrit : > > > > > On 12 Mar 2019, at 17:12, Gilles Sadowski wrote: > > > > [Replying to list.] > > > > Le mar. 12 mars 2019 à 15:39, Alex Herbert > > a écrit : > >> > >> > >> On 12/03/2019 15:33, Gilles Sadowski wrote:

Re: [Rng] New XoShiRo generators

2019-03-12 Thread Alex Herbert
> On 12 Mar 2019, at 17:12, Gilles Sadowski wrote: > > [Replying to list.] > > Le mar. 12 mars 2019 à 15:39, Alex Herbert > a écrit : >> >> >> On 12/03/2019 15:33, Gilles Sadowski wrote: >> >> Hi Alex. >> >> Le mar. 12 mars 2019 à 12:53, Alex Herbert a >

Re: [Rng] New XoShiRo generators

2019-03-12 Thread Gilles Sadowski
[Replying to list.] Le mar. 12 mars 2019 à 15:39, Alex Herbert a écrit : > > > On 12/03/2019 15:33, Gilles Sadowski wrote: > > Hi Alex. > > Le mar. 12 mars 2019 à 12:53, Alex Herbert a écrit > : > > On 11/03/2019 23:44, Gilles Sadowski wrote: > > Hello. > > Le jeu. 7 mars 2019 à 00:44, Alex Her

Re: [Rng] New XoShiRo generators

2019-03-12 Thread Alex Herbert
[Replying to the list ML.] FYI. I have set up a composite (XorShift1024Star ^ XorShift1024StarPhi) test using DieHarder to run overnight with 100 seeds. If this passes then I'll find more resources and run BigCrush with the composite. Alex On 12/03/2019 14:39, Alex Herbert wrote: On 1

Re: [Rng] New XoShiRo generators

2019-03-11 Thread Gilles Sadowski
Hello. Le jeu. 7 mars 2019 à 00:44, Alex Herbert a écrit : > > > > > On 6 Mar 2019, at 22:57, Gilles Sadowski wrote: > > > >>> > >>> However I will test if XorShift1024Star and XorShift1024StarPhi are > >>> correlated just for completeness. > >>> > >> > >> Did a test of 100 repeats of a correla

Re: [Rng] New XoShiRo generators

2019-03-06 Thread Alex Herbert
> On 6 Mar 2019, at 22:57, Gilles Sadowski wrote: > >>> >>> However I will test if XorShift1024Star and XorShift1024StarPhi are >>> correlated just for completeness. >>> >> >> Did a test of 100 repeats of a correlation of 50 longs from the >> XorShift1024Star and XorShift1024StarPhi, new s

Re: [Rng] New XoShiRo generators

2019-03-06 Thread Gilles Sadowski
Le mer. 6 mars 2019 à 23:07, Alex Herbert a écrit :> > > > > On 6 Mar 2019, at 21:42, Alex Herbert wrote: > > > > > > > >> On 6 Mar 2019, at 21:24, Gilles Sadowski wrote: > >> > >> Hello. > >> > >> Le mer. 6 mars 2019 à 21:49, Alex Herbert a > >> écrit : > >>> > >>> > >>> > On 6 Mar 2019,

Re: [Rng] New XoShiRo generators

2019-03-06 Thread Alex Herbert
> > On 6 Mar 2019, at 21:42, Alex Herbert wrote: > > > >> On 6 Mar 2019, at 21:24, Gilles Sadowski wrote: >> >> Hello. >> >> Le mer. 6 mars 2019 à 21:49, Alex Herbert a écrit >> : >>> >>> >>> On 6 Mar 2019, at 17:11, Gilles Sadowski wrote: Do the two variants produce u

Re: [Rng] New XoShiRo generators

2019-03-06 Thread Alex Herbert
> On 6 Mar 2019, at 21:24, Gilles Sadowski wrote: > > Hello. > > Le mer. 6 mars 2019 à 21:49, Alex Herbert a écrit : >> >> >> >>> On 6 Mar 2019, at 17:11, Gilles Sadowski wrote: >>> >>> Do the two variants produce uncorrelated sequences? >> >> I will test this when I branch a new PR fo

Re: [Rng] New XoShiRo generators

2019-03-06 Thread Gilles Sadowski
Hello. Le mer. 6 mars 2019 à 21:49, Alex Herbert a écrit : > > > > > On 6 Mar 2019, at 17:11, Gilles Sadowski wrote: > > > > Do the two variants produce uncorrelated sequences? > > I will test this when I branch a new PR for just this code. IMHO, it's strange that there would be 2 sources of ra

Re: [Rng] New XoShiRo generators

2019-03-06 Thread Alex Herbert
> On 6 Mar 2019, at 17:11, Gilles Sadowski wrote: > > Do the two variants produce uncorrelated sequences? I will test this when I branch a new PR for just this code.

Re: [Rng] New XoShiRo generators

2019-03-06 Thread Alex Herbert
> On 6 Mar 2019, at 17:13, Gilles Sadowski wrote: > > Le mer. 6 mars 2019 à 16:50, Alex Herbert a écrit : >> >> I would like to merge this PR introducing the new XoShiRo generators: >> >> https://github.com/apache/commons-rng/pull/20 >> >> >

Re: [Rng] New XoShiRo generators

2019-03-06 Thread Gilles Sadowski
Le mer. 6 mars 2019 à 16:50, Alex Herbert a écrit : > > I would like to merge this PR introducing the new XoShiRo generators: > > https://github.com/apache/commons-rng/pull/20 > > > Can I get a review to check that nothing is obviously bad. In the

Re: [Rng] New XoShiRo generators

2019-03-06 Thread Gilles Sadowski
Le mer. 6 mars 2019 à 17:27, Alex Herbert a écrit : > > > > > On 6 Mar 2019, at 16:22, Gilles Sadowski wrote: > > > > Hi Alex. > > > > Le mer. 6 mars 2019 à 16:50, Alex Herbert a > > écrit : > >> > >> I would like to merge this PR introducing the new XoShiRo generators: > >> > >> https://github

Re: [Rng] New XoShiRo generators

2019-03-06 Thread Alex Herbert
> On 6 Mar 2019, at 16:22, Gilles Sadowski wrote: > > Hi Alex. > > Le mer. 6 mars 2019 à 16:50, Alex Herbert a écrit : >> >> I would like to merge this PR introducing the new XoShiRo generators: >> >> https://github.com/apache/commons-rng/pull/20 >>

Re: [Rng] New XoShiRo generators

2019-03-06 Thread Gilles Sadowski
Hi Alex. Le mer. 6 mars 2019 à 16:50, Alex Herbert a écrit : > > I would like to merge this PR introducing the new XoShiRo generators: > > https://github.com/apache/commons-rng/pull/20 > > > Can I get a review to check that nothing is obviously bad

[Rng] New XoShiRo generators

2019-03-06 Thread Alex Herbert
I would like to merge this PR introducing the new XoShiRo generators: https://github.com/apache/commons-rng/pull/20 Can I get a review to check that nothing is obviously bad. Thanks, Alex