<p>In <a href="https://github.com/mlpack/mlpack/pull/686#discussion_r71100690">src/mlpack/methods/ne/population.hpp</a>:</p>
<pre style='color:#555'>> + // Set next genome id.
> + void NextGenomeId(ssize_t nextGenomeId) { aNextGenomeId = nextGenomeId; }
> +
> + // Get next genome id.
> + ssize_t NextGenomeId() const { return aNextGenomeId; }
> +
> + // Get species number.
> + ssize_t NumSpecies() const { return aSpecies.size(); }
> +
> + // Get population size.
> + ssize_t PopulationSize() const {
> + ssize_t populationSize = 0;
> + for (ssize_t i=0; i<aSpecies.size(); ++i) {
> + populationSize += aSpecies[i].aGenomes.size();
> + }
> + }
</pre>
<p>Oh, sorry, a bug! Revised, thanks!</p>
<p style="font-size:small;-webkit-text-size-adjust:none;color:#666;">—<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/686/files/66b0f4171ab0c6810cf3058e653e48d18c4913be#r71100690">view it on GitHub</a>, or <a href="https://github.com/notifications/unsubscribe-auth/AJ4bFCjF6KC8IdbofJ-Ff8tMUxRL5so-ks5qWwlKgaJpZM4IwJa6">mute the thread</a>.<img alt="" height="1" src="https://github.com/notifications/beacon/AJ4bFKbxlnoXPjBlyjkFoQdKltK8OqMxks5qWwlKgaJpZM4IwJa6.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/686/files/66b0f4171ab0c6810cf3058e653e48d18c4913be#r71100690"></link>
<meta itemprop="name" content="View Pull Request"></meta>
</div>
<meta itemprop="description" content="View this Pull Request on GitHub"></meta>
</div>