Skip to content

Struct cowboys::CGPParameters

ClassList > cowboys > CGPParameters

Holds the parameters that define the structure of a cartesian graph.

  • #include <CGPGenotype.hpp>

Public Attributes

Type Name
size_t layers_back = {0}
The number of layers backward that a node can connect to.
size_t num_inputs = {0}
The number of inputs to the graph.
size_t num_layers = {0}
The number of middle layers in the graph.
size_t num_nodes_per_layer = {0}
The number of nodes per middle layer.
size_t num_outputs = {0}
The number of outputs from the graph.

Public Functions

Type Name
CGPParameters () = default
CGPParameters (size_t num_inputs, size_t num_outputs, size_t num_layers, size_t num_nodes_per_layer, size_t layers_back)
Constructor for the cartesian graph parameters.
size_t GetFunctionalNodeCount () const
Returns the number of functional nodes in the graph.
bool operator== (const CGPParameters & other) const
Check if two CGPParameters are equal.

Public Attributes Documentation

variable layers_back

size_t layers_back;

variable num_inputs

size_t num_inputs;

variable num_layers

size_t num_layers;

variable num_nodes_per_layer

size_t num_nodes_per_layer;

variable num_outputs

size_t num_outputs;

Public Functions Documentation

function CGPParameters [1/2]

cowboys::CGPParameters::CGPParameters () = default

function CGPParameters [2/2]

inline cowboys::CGPParameters::CGPParameters (
    size_t num_inputs,
    size_t num_outputs,
    size_t num_layers,
    size_t num_nodes_per_layer,
    size_t layers_back
) 

function GetFunctionalNodeCount

Returns the number of functional nodes in the graph.

inline size_t cowboys::CGPParameters::GetFunctionalNodeCount () const

Returns:

The number of functional nodes in the graph.

function operator==

Check if two CGPParameters are equal.

inline bool cowboys::CGPParameters::operator== (
    const CGPParameters & other
) const

Parameters:

Returns:

True if the two CGPParameters are equal, false otherwise.


The documentation for this class was generated from the following file source/Agents/GP/CGPGenotype.hpp