[mlpack-git] [mlpack/mlpack] NeuralEvolution - implemented gene, genome (#686)
Excalibur
notifications at github.com
Wed Jun 8 20:51:07 EDT 2016
> +
> + // Get aFromNeuronId.
> + unsigned int FromNeuronId() const { return aFromNeuronId; }
> +
> + // Get aToNeuronId.
> + unsigned int ToNeuronId() const { return aToNeuronId; }
> +
> + // Get aInnovationId.
> + unsigned int InnovationId() const { return aInnovationId; }
> +
> + // Set aWeight.
> + void Weight(double weight) { aWeight = weight; }
> +
> + // Get aWeight.
> + double Weight() const { return aWeight; }
> +
The a in front of a parameter means it is a member parameter of a class, rather than function argument, temporal variable, etc.
I read the mlpack style guide, google C++ style guide, and another guide from here:
https://users.ece.cmu.edu/~eno/coding/CppCodingStandard.html#attrnames
and this is the style I like most. And turns out so far it seems good to me.
---
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/mlpack/mlpack/pull/686/files/3c8aa62b951f029b3883e9baef1ea556ef5af2d3#r66367175
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://mailman.cc.gatech.edu/pipermail/mlpack-git/attachments/20160608/803e6dd1/attachment.html>
More information about the mlpack-git
mailing list