[mlpack-git] [mlpack/mlpack] Adds a GammaDistribution object for estimating gamma parameters (#729)

Yannis Mentekidis notifications at github.com
Wed Jul 20 11:01:21 EDT 2016


> @@ -0,0 +1,76 @@
> +/**
> + * @file gamma_distribution.cpp
> + * @author Yannis Mentekidis
> + *
> + * Implementation of the methods of GammaDistribution.
> + */
> +#include "gamma_distribution.hpp"
> +
> +#include <boost/math/special_functions/digamma.hpp>
> +#include <boost/math/special_functions/trigamma.hpp>

Yep, my mistake, it was added on Boost 1.58. I misunderstood the article I linked before, when scanning it I thought there was a relationship so you could compute trigamma(x) = f(digamma(x)) but instead it is trigamma(x) = f(trigamma(x-1)).

I think the best option is to backport the source code from boost... I'll start examining how to do that, hopefully it will be as straightforward as copying a 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/729/files/5293b5037a19735d70937bef7bc97838ca542bbc#r71542157
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://mailman.cc.gatech.edu/pipermail/mlpack-git/attachments/20160720/8f8a1f16/attachment.html>


More information about the mlpack-git mailing list