Class task_dist_entropy

Inheritance Relationships

Base Type

Class Documentation

class task_dist_entropy : public cosm::convergence::convergence_measure

Calculate the task_dist entropy of the swarm, using the methods outlined in Balch2000 and Turgut2008.

Public Functions

inline explicit task_dist_entropy(double epsilon)
inline bool operator()(const std::vector<int> &tasks)

Calculate the task distribution entropy of the swarm.

Parameters:

tasks – The current task distribution (each task is a unique non-negative integer).