-
Notifications
You must be signed in to change notification settings - Fork 18
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
question: can this tool be used to evaluate my own list of numbers #7
Comments
I'm guessing this package is basically abandonware. I have the same question and the supposed "User Guide" gives no useful information.
so it may be possible to supply your sequence in a file name. That seems to be your case, so "all you need to do" is figure out how that file is parsed. As ascii or binary, what format, .... I was looking for an integation like this:
where
is some spec for a random number generator. So you could wrap your own in this struct. |
Victor (and others):
See the module "ufile", on page 86 of the short user guide. This is
where the generators defined by reading numbers from a file are
implemented. We use ufile_CreateReadText to read uniform random numbers
over [0,1], which must be in an ASCII file in text format, with white
spaces between the numbers. We use ufile_CreateReadBin to read binary
files which contain only a sequence of bits, with no space.
The Crush batteries use the former, because they are designed to test
sequence of U(0,1) random numbers in floating point. The Rabbit and
Alphabit batteries are designed to test binary sequences, so they use
the latter format. I think this is all said in Chapter 4 of the guide.
-- Pierre L'Ecuyer
On 9/12/2022 3:33 PM, Victor Eijkhout wrote:
I'm guessing this package is basically abandonware. I have the same
question and the supposed "User Guide" gives no useful information.
|void bbattery_SmallCrushFile (char *filename); |
so it may be possible to supply your sequence in a file name. That
seems to be your case, so "all you need to do" is figure out how that
file is parsed. As ascii or binary, what format, ....
I was looking for an integation like this:
|void bbattery_SmallCrush (unif01_Gen *gen); |
where
|typedef struct { void *state; void *param; char *name; double
(*GetU01) (void *param, void *state); unsigned long (*GetBits) (void
*param, void *state); void (*Write) (void *state); } unif01_Gen; |
is some spec for a random number generator. So you could wrap your own
in this struct.
—
Reply to this email directly, view it on GitHub
<#7 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ACVHLI74LUCA7BIGSUIYSWTV56AQTANCNFSM4YEIKJMQ>.
You are receiving this because you are subscribed to this
thread.Message ID:
***@***.***>
--
Pierre L'Ecuyer, Professeur Titulaire
CIRRELT, GERAD, and DIRO, Université de Montréal, Canada
http://www.iro.umontreal.ca/~lecuyer
|
Victor (and others):
See the module "ufile", on page 86 of the short user guide. This is
where the generators defined by reading numbers from a file are
implemented. We use ufile_CreateReadText to read uniform random numbers
over [0,1], which must be in an ASCII file in text format, with white
spaces between the numbers. We use ufile_CreateReadBin to read binary
files which contain only a sequence of bits, with no space.
The Crush batteries use the former, because they are designed to test
sequence of U(0,1) random numbers in floating point. The Rabbit and
Alphabit batteries are designed to test binary sequences, so they use
the latter format. I think this is all said in Chapter 4 of the guide.
-- Pierre L'Ecuyer
--------------------------------
Of course, you can also create your own gen as an instance of the
struct, as done in the several u* files, and this gen can do whatever
you want. You can look at the u*.c files, including ufile.c.
On 9/12/2022 3:33 PM, Victor Eijkhout wrote:
I'm guessing this package is basically abandonware. I have the same
question and the supposed "User Guide" gives no useful information.
|void bbattery_SmallCrushFile (char *filename); |
so it may be possible to supply your sequence in a file name. That
seems to be your case, so "all you need to do" is figure out how that
file is parsed. As ascii or binary, what format, ....
I was looking for an integation like this:
|void bbattery_SmallCrush (unif01_Gen *gen); |
where
|typedef struct { void *state; void *param; char *name; double
(*GetU01) (void *param, void *state); unsigned long (*GetBits) (void
*param, void *state); void (*Write) (void *state); } unif01_Gen; |
is some spec for a random number generator. So you could wrap your own
in this struct.
—
Reply to this email directly, view it on GitHub
<#7 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ACVHLI74LUCA7BIGSUIYSWTV56AQTANCNFSM4YEIKJMQ>.
You are receiving this because you are subscribed to this
thread.Message ID:
***@***.***>
--
Pierre L'Ecuyer, Professeur Titulaire
CIRRELT, GERAD, and DIRO, Université de Montréal, Canada
http://www.iro.umontreal.ca/~lecuyer
|
Hi,
(This is more of a question than I issue. )
Suppose I have a
txt file
with millions of numbers obtained from real-data measurements.Can I use your tool to run the battery test and evaluate the randomness of these numbers ?
They range from 0 to 2^16.
If so, is there an example I could use to do that?
Thanks
The text was updated successfully, but these errors were encountered: