<p>In <a href="https://github.com/mlpack/mlpack/pull/686#discussion_r66367560">src/mlpack/methods/ne/gene.hpp</a>:</p>
<pre style='color:#555'>&gt; +
&gt; +  // Destructor.
&gt; +  ~LinkGene() {}
&gt; +
&gt; +  // Get aFromNeuronId.
&gt; +  unsigned int FromNeuronId() const { return aFromNeuronId; }
&gt; +
&gt; +  // Get aToNeuronId.
&gt; +  unsigned int ToNeuronId() const { return aToNeuronId; }
&gt; +
&gt; +  // Get aInnovationId.
&gt; +  unsigned int InnovationId() const { return aInnovationId; }
&gt; +
&gt; +  // Set aWeight.
&gt; +  void Weight(double weight) { aWeight = weight; }
&gt; +
</pre>
<blockquote>
<p><a href="https://github.com/zoq" class="user-mention">@zoq</a> So in this way, linkGene.Weight() get the weight, and linkGene.Weight() = weight set the member weight, is this correct?</p>
</blockquote>

<p>That sounds right.</p>

<p>As <a href="https://github.com/rcurtin" class="user-mention">@rcurtin</a> said: <a href="https://github.com/mlpack/mlpack/pull/463#issuecomment-151167047" class="issue-link js-issue-link" data-url="https://github.com/mlpack/mlpack/issues/463" data-id="112463461" data-error-text="Failed to load issue title" data-permission-text="Issue title is private">#463 (comment)</a> it's subjective.</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#r66367560">view it on GitHub</a>, or <a href="https://github.com/notifications/unsubscribe/AJ4bFMTJf4PTNq2wZAOqSXJ9L4M4Leugks5qJ2ShgaJpZM4IwJa6">mute the thread</a>.<img alt="" height="1" src="https://github.com/notifications/beacon/AJ4bFA21EtqIMtJgjC7d1lIM05AjxJepks5qJ2ShgaJpZM4IwJa6.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#r66367560"></link>
  <meta itemprop="name" content="View Pull Request"></meta>
</div>
<meta itemprop="description" content="View this Pull Request on GitHub"></meta>
</div>