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

Allow to set seed for reproducible core sampling #26

Closed
hdbeukel opened this issue Mar 16, 2017 · 0 comments
Closed

Allow to set seed for reproducible core sampling #26

hdbeukel opened this issue Mar 16, 2017 · 0 comments
Assignees
Milestone

Comments

@hdbeukel
Copy link
Member

hdbeukel commented Mar 16, 2017

We could generate seeds for the Core Hunter search random generators using the random generator in R, e.g. with

ceiling(runif(1,0,2^31-1))

where 2^31-1 is the maximum integer value in R and Java (R does not have long types). This yields a random number in [1,2^31-1].

Using set.seed(...) in R then also controls Core Hunter's random number generation and allows to have reproducible results.

@hdbeukel hdbeukel added this to the v3.1.1 milestone Mar 16, 2017
@hdbeukel hdbeukel self-assigned this Mar 16, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant