<p>While implementing LSHModel I realized I would need the <code>GammaDistribution::Probability(x)</code> function. I remembered I mentioned in <a href="https://github.com/mlpack/mlpack/issues/733" class="issue-link js-issue-link" data-url="https://github.com/mlpack/mlpack/issues/733" data-id="167029936" data-error-text="Failed to load issue title" data-permission-text="Issue title is private">#733</a> I said I'd do it at some point, so I completed it now.</p>

<p>I also added a <code>Probability(x, dimension)</code>, for evaluating a single dimension at a time. This is useful for my implementation, and might prove useful to others since the gammas are completely independent here.</p>

<p>There's only one thing that bugs me: I'm not sure how to test the <code>Train(observations, probability)</code> function, so I haven't written a test for that yet.</p>

<hr>

<h4>You can view, comment on, or merge this pull request online at:</h4>
<p>&nbsp;&nbsp;<a href='https://github.com/mlpack/mlpack/pull/751'>https://github.com/mlpack/mlpack/pull/751</a></p>

<h4>Commit Summary</h4>
<ul>
  <li>Adds functionality to solve #749</li>
</ul>

<h4>File Changes</h4>
<ul>
  <li>
    <strong>M</strong>
    <a href="https://github.com/mlpack/mlpack/pull/751/files#diff-0">src/mlpack/core/dists/gamma_distribution.cpp</a>
    (99)
  </li>
  <li>
    <strong>M</strong>
    <a href="https://github.com/mlpack/mlpack/pull/751/files#diff-1">src/mlpack/core/dists/gamma_distribution.hpp</a>
    (73)
  </li>
  <li>
    <strong>M</strong>
    <a href="https://github.com/mlpack/mlpack/pull/751/files#diff-2">src/mlpack/tests/distribution_test.cpp</a>
    (70)
  </li>
</ul>

<h4>Patch Links:</h4>
<ul>
  <li><a href='https://github.com/mlpack/mlpack/pull/751.patch'>https://github.com/mlpack/mlpack/pull/751.patch</a></li>
  <li><a href='https://github.com/mlpack/mlpack/pull/751.diff'>https://github.com/mlpack/mlpack/pull/751.diff</a></li>
</ul>

<p style="font-size:small;-webkit-text-size-adjust:none;color:#666;">&mdash;<br />You are receiving this because you are subscribed to this thread.<br />Reply to this email directly, <a href="https://github.com/mlpack/mlpack/pull/751">view it on GitHub</a>, or <a href="https://github.com/notifications/unsubscribe-auth/AJ4bFPOYsTuvMU3lxOdMu_CUO7mB5aLxks5qc3uXgaJpZM4Jd7IK">mute the thread</a>.<img alt="" height="1" src="https://github.com/notifications/beacon/AJ4bFI9iK4vz1Qgijmup2wjvpykRAxDFks5qc3uXgaJpZM4Jd7IK.gif" width="1" /></p>
<div itemscope itemtype="http://schema.org/EmailMessage">
<div itemprop="action" itemscope itemtype="http://schema.org/ViewAction">
  <link itemprop="url" href="https://github.com/mlpack/mlpack/pull/751"></link>
  <meta itemprop="name" content="View Pull Request"></meta>
</div>
<meta itemprop="description" content="View this Pull Request on GitHub"></meta>
</div>

<script type="application/json" data-scope="inboxmarkup">{"api_version":"1.0","publisher":{"api_key":"05dde50f1d1a384dd78767c55493e4bb","name":"GitHub"},"entity":{"external_key":"github/mlpack/mlpack","title":"mlpack/mlpack","subtitle":"GitHub repository","main_image_url":"https://assets-cdn.github.com/images/modules/aws/aws-bg.jpg","avatar_image_url":"https://cloud.githubusercontent.com/assets/143418/15842166/7c72db34-2c0b-11e6-9aed-b52498112777.png","action":{"name":"Open in GitHub","url":"https://github.com/mlpack/mlpack"}},"updates":{"snippets":[{"icon":"DESCRIPTION","message":"GammaDistribution: Adds functionality to solve #749 (#751)"}],"action":{"name":"View Pull Request","url":"https://github.com/mlpack/mlpack/pull/751"}}}</script>