[mlpack-git] [mlpack/mlpack] GammaDistribution: Adds functionality to solve #749 (#751)
Ryan Curtin
notifications at github.com
Fri Aug 5 23:42:58 EDT 2016
> + * observations.
> + *
> + * The logarithm of the probability of a value x is
> + *
> + * log(\frac{x^(\alpha - 1)}{\Gamma(\alpha) * \beta^\alpha} * e ^
> + * {-\frac{x}{\beta}})
> + *
> + * for one dimension. This implementation assumes each dimension is
> + * independent, so the product rule is used.
> + *
> + * @param observations Matrix of observations, one per column.
> + * @param logProbabilities column vector of log probabilities, one per
> + * observation.
> + */
> + void LogProbability(const arma::mat& observations,
> + arma::vec& LogProbabilities) const;
Odd indentation here too. I promise I will comment on more than just style :)
---
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/751/files/9cb117f671f55186baddf38ce71107a2a3ae027f#r73780238
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://mailman.cc.gatech.edu/pipermail/mlpack-git/attachments/20160805/0dfc10b6/attachment-0001.html>
More information about the mlpack-git
mailing list