CG_Gen::TruthTableParameters class

Parameters for generating truth tables The class provides the parameters needed to generate truth tables.

These parameters include the number of entries and exits, population size, parameters for selection, recombination and mutation operations, as well as termination criteria truth table generation process

Base classes

class GeneticParameters

Constructors, destructors, conversion operators

TruthTableParameters(uint32_t i_inputs = 0, uint32_t i_outputs = 0)
TruthTableParameters.
TruthTableParameters(const GeneticParameters& i_gp)
TruthTableParameters.

Public functions

auto getPopulationSize() -> uint32_t
getPopulationSize
auto size() const -> uint32_t
size Returns the size of the truth table population
auto operator==(const TruthTableParameters& r) -> bool
Overloaded comparison operator for Truth Table Parameters.

Function documentation

CG_Gen::TruthTableParameters::TruthTableParameters(uint32_t i_inputs = 0, uint32_t i_outputs = 0)

TruthTableParameters.

Parameters
i_inputs Number of truth table inputs
i_outputs Number of truth table outputs

CG_Gen::TruthTableParameters::TruthTableParameters(const GeneticParameters& i_gp)

TruthTableParameters.

Parameters
i_gp Genetic parameters used to generate the truth table

uint32_t CG_Gen::TruthTableParameters::getPopulationSize()

getPopulationSize

Returns truth table population size

uint32_t CG_Gen::TruthTableParameters::size() const

size Returns the size of the truth table population

Returns truth table population size

bool CG_Gen::TruthTableParameters::operator==(const TruthTableParameters& r)

Overloaded comparison operator for Truth Table Parameters.

Parameters
r Truth table parameters for comparison
Returns true if the parameters are equal, otherwise false