Skip to content
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

Open
gmmoura opened this issue Feb 24, 2021 · 3 comments
Open

Comments

@gmmoura
Copy link

gmmoura commented Feb 24, 2021

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

@VictorEijkhout
Copy link

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.

@pierrelecuyer
Copy link
Member

pierrelecuyer commented Sep 13, 2022 via email

@pierrelecuyer
Copy link
Member

pierrelecuyer commented Sep 13, 2022 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants