statistics.h
Go to the documentation of this file.
Statistics(std::vector< Particle * > *initial_swarm)
The constructor.
long long current_iteration
The current iteration counter.
Definition: statistics.h:107
std::vector< std::vector< std::string > > stored_statistical_data
Various lists of stored (but not yet saved) statistical data.
Definition: statistics.h:95
This class stores a program version.
Definition: general_objects.h:54
std::vector< long long > local_attractor_update_counter
For each particle the number of local attractor updates enforced by found positions of this particle...
Definition: statistics.h:99
std::vector< long long > stored_statistical_iterations
The iteration numbers of stored (but not yet saved) statistical data.
Definition: statistics.h:91
This class stores current information about the particle swarm.
Definition: statistics.h:55
void EvaluateStatistics()
If the current iteration counter has a value, where statistical calculations are expected, then the values of all statistics are evaluated and stored in respective vectors.
void LoadData(std::ifstream *input_stream, ProgramVersion *version_of_stored_data)
Loads data to reset the state of the statistics object to the state which was stored.
void StoreData(std::ofstream *output_stream)
Stores the current state of the statistics object (iteration counter, attractor positions and update ...
This file contains information about the particles of the swarm.
std::vector< Particle * > * swarm
The list of particles, which are contained in the current swarm.
Definition: statistics.h:87
std::vector< long long > global_attractor_update_counter
For each particle the number of global attractor updates enforced by found positions of this particle...
Definition: statistics.h:103
This file contains various general objects which can be used by or contained in other objects...