Struct cowboys::CGPNodeGene
ClassList > cowboys > CGPNodeGene
Holds the representation of a cartesian graph node.
#include <CGPGenotype.hpp>
Public Attributes
Type | Name |
---|---|
double | default_output = {0} The default output of the node. |
size_t | function_idx = {0} The index of the function the node uses. |
std::vector< char > | input_connections = {} The input connections of this node. '1' means connected, '0' means not connected. |
Public Functions
Type | Name |
---|---|
bool | operator== (const CGPNodeGene & other) const Compare two CGPNodeGenes for equality. |
Public Attributes Documentation
variable default_output
double default_output;
variable function_idx
size_t function_idx;
variable input_connections
std::vector<char> input_connections;
Public Functions Documentation
function operator==
Compare two CGPNodeGenes for equality.
inline bool cowboys::CGPNodeGene::operator== (
const CGPNodeGene & other
) const
Parameters:
other
The other CGPNodeGene to compare to.
Returns:
True if the two CGPNodeGenes are equal, false otherwise.
The documentation for this class was generated from the following file source/Agents/GP/CGPGenotype.hpp