Skip to content

Class cowboys::GPAgentAnalyzer

ClassList > cowboys > GPAgentAnalyzer

Public Functions

Type Name
GPAgentAnalyzer () = default
Construct a new GP Agent Analyzer object.
void addAverageFitness (double fitness)
Adds the average fitness of the best agent.
void addAverageScore (double score)
Adds the average score of the best agent.
void addEliteScore (double score)
Adds the weighted score of the best agent.
void addMaxFitness (double fitness)
Adds the max fitness of the best agent.
void addNumAgentsWithMaxFitness (double num_agents)
Adds the number of agents with the max fitness.
void saveToFile ()
Saves the data to a csv file.
~GPAgentAnalyzer () = default
Destroy the GP Agent Analyzer object.

Public Functions Documentation

function GPAgentAnalyzer

cowboys::GPAgentAnalyzer::GPAgentAnalyzer () = default

function addAverageFitness

Adds the average fitness of the best agent.

inline void cowboys::GPAgentAnalyzer::addAverageFitness (
    double fitness
) 

Parameters:

  • fitness

function addAverageScore

Adds the average score of the best agent.

inline void cowboys::GPAgentAnalyzer::addAverageScore (
    double score
) 

Parameters:

  • score

function addEliteScore

Adds the weighted score of the best agent.

inline void cowboys::GPAgentAnalyzer::addEliteScore (
    double score
) 

Parameters:

  • score

function addMaxFitness

Adds the max fitness of the best agent.

inline void cowboys::GPAgentAnalyzer::addMaxFitness (
    double fitness
) 

Parameters:

  • fitness

function addNumAgentsWithMaxFitness

Adds the number of agents with the max fitness.

inline void cowboys::GPAgentAnalyzer::addNumAgentsWithMaxFitness (
    double num_agents
) 

Parameters:

  • num_agents

function saveToFile

inline void cowboys::GPAgentAnalyzer::saveToFile () 

function ~GPAgentAnalyzer

cowboys::GPAgentAnalyzer::~GPAgentAnalyzer () = default

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