Class angular_order

Inheritance Relationships

Base Type

Class Documentation

class angular_order : public cosm::convergence::convergence_measure

Calculates the angular order within a swarm for a given instant. From Turgut2008.

Public Functions

inline explicit angular_order(double epsilon)
inline bool operator()(const std::vector<rmath::radians> &headings, size_t n_threads)

Calculates the raw and normalized angular order for the swarm (from Turgut2008).

Returns:

TRUE iff convergence has been achieved according to configured parameters and the current state of the swarm.