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

Add brain::Circuit::getRandomGIDs() #83

Merged
merged 1 commit into from
Jul 21, 2016
Merged

Add brain::Circuit::getRandomGIDs() #83

merged 1 commit into from
Jul 21, 2016

Conversation

tribal-tec
Copy link
Contributor

No description provided.

@@ -147,6 +150,26 @@ class Circuit::Impl
return brion::Target::parse( _targetParsers, target );
}

GIDSet getRandomGIDs( const float fraction,
const std::string& target ) const
{
Copy link
Contributor

@hernando hernando Jul 21, 2016

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You must provide a way to make the result deterministic. I'd suggest to either add an environment variable to choose the seed or always use the same seed. In particular, I think the C++11 code is using the most random device possible by default.
Adding a seed parameter to the functions may also be desirable, but I don't know how that works in combination with the current implementation.

@tribal-tec
Copy link
Contributor Author

Updated

@hernando hernando merged commit 83d82d4 into BlueBrain:master Jul 21, 2016
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

Successfully merging this pull request may close these issues.

2 participants