<p>In <a href="https://github.com/mlpack/mlpack/pull/686#discussion_r66364205">src/mlpack/methods/ne/gene.hpp</a>:</p>
<pre style='color:#555'>> +
> + // Link weight.
> + double aWeight;
> +
> + // Link innovation ID.
> + unsigned int aInnovationId;
> +
> +};
> +
> +/**
> + * This class defines a neuron gene.
> + */
> +class NeuronGene {
> + public:
> + // Input sum.
> + double aInput;
</pre>
<p>Can we write a member function for the input parameter and use that for modifying?</p>
<p><code><br>
double& Input() { return input; }<br>
</code><br>
and use it like:<br>
<code><br>
linkGene.Input() = 1;<br>
</code></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/3c8aa62b951f029b3883e9baef1ea556ef5af2d3#r66364205">view it on GitHub</a>, or <a href="https://github.com/notifications/unsubscribe/AJ4bFJVKaLsu-2loK7IgYQekVED-itd8ks5qJ1qRgaJpZM4IwJa6">mute the thread</a>.<img alt="" height="1" src="https://github.com/notifications/beacon/AJ4bFGpwXvcw_J3F-6yUX_J6YjFXV5V2ks5qJ1qRgaJpZM4IwJa6.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/3c8aa62b951f029b3883e9baef1ea556ef5af2d3#r66364205"></link>
<meta itemprop="name" content="View Pull Request"></meta>
</div>
<meta itemprop="description" content="View this Pull Request on GitHub"></meta>
</div>