<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'>&gt; +
&gt; +  // Link weight.
&gt; +  double aWeight;
&gt; +
&gt; +  // Link innovation ID.
&gt; +  unsigned int aInnovationId;
&gt; + 
&gt; +};
&gt; +
&gt; +/**
&gt; + * This class defines a neuron gene.
&gt; + */
&gt; +class NeuronGene {
&gt; + public:
&gt; +  // Input sum.
&gt; +  double aInput;
</pre>
<p>Can we write a member function for the input parameter and use that for modifying?</p>

<p><code><br>
double&amp; 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;">&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/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>