Class angular_order
Defined in File angular_order.hpp
Inheritance Relationships
Base Type
public cosm::convergence::convergence_measure
(Class convergence_measure)
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.
-
inline explicit angular_order(double epsilon)