[mlpack-git] [mlpack/mlpack] CNE algorithm (#753)

Excalibur notifications at github.com
Sun Aug 7 21:18:45 EDT 2016


> +
> +// Returns randomly either 1 or -1
> +int RandPosNeg() {
> +  boost::random::uniform_int_distribution<> dist(0, 1);
> +  return dist(rng);
> +}
> +
> +// Returns a random integer between [x, y]
> +// in case of ( 0 .. 1 ) returns 0
> +int RandInt(int x, int y) {
> +	boost::random::uniform_int_distribution<> dist(x, y);
> +    return dist(rng);
> +}
> +
> +// Return a random float between [0, 1]
> +double RandFloat() {

Yeah, no problem.

---
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/mlpack/mlpack/pull/753/files/10b99ab5c6e8d2836d231fa60a898cc03f7d9192#r73813620
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://mailman.cc.gatech.edu/pipermail/mlpack-git/attachments/20160807/8f0bbaf8/attachment.html>


More information about the mlpack-git mailing list