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

Marcus Edel notifications at github.com
Mon Aug 29 17:57:30 EDT 2016


> +  return dist(rng);
> +}
> +
> +/**
> + * Return a random float between [x, y]
> + */
> +double RandFloat(double x, double y)
> +{
> +  boost::random::uniform_real_distribution<> dist(x, y);
> +  return dist(rng);
> +}
> +
> +/**
> + * Return the sign of a number.
> + */
> +template <typename T> int sgn(T val)

If we use armadillo's ``sgn`` function, we could remove the utils file, or do we need another function from the header file?

-- 
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/44f44cd14f046539b92395ada8ca4bf184ea4f93#r76695578
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://mailman.cc.gatech.edu/pipermail/mlpack-git/attachments/20160829/c2135490/attachment.html>


More information about the mlpack-git mailing list