Vita
Classes | Public Types | Public Member Functions | List of all members
vita::analyzer< T > Class Template Reference

Analyzer takes a statistics snapshot of a population. More...

#include <analyzer.h>

Classes

struct  sym_counter
 

Public Types

using const_iterator = typename std::map< const symbol *, sym_counter >::const_iterator
 Type returned by begin() and end() methods to iterate through the statistics of the various symbols. More...
 

Public Member Functions

void add (const T &, const fitness_t &, unsigned=0)
 
const distribution< double > & age_dist () const
 
const distribution< double > & age_dist (unsigned) const
 
const_iterator begin () const
 
void clear ()
 
const_iterator end () const
 
const distribution< fitness_t > & fit_dist () const
 
const distribution< fitness_t > & fit_dist (unsigned) const
 
std::uintmax_t functions (bool) const
 
bool is_valid () const
 
const distribution< double > & length_dist () const
 
std::uintmax_t terminals (bool) const
 

Detailed Description

template<class T>
class vita::analyzer< T >

Analyzer takes a statistics snapshot of a population.

Template Parameters
Ttype of individual

Procedure:

  1. the population set should be loaded adding one individual at time (analyzer::add method);
  2. statistics can be checked calling specific methods.

You can get information about:

Definition at line 43 of file analyzer.h.

Member Typedef Documentation

◆ const_iterator

template<class T >
using vita::analyzer< T >::const_iterator = typename std::map<const symbol *, sym_counter>::const_iterator

Type returned by begin() and end() methods to iterate through the statistics of the various symbols.

Definition at line 71 of file analyzer.h.


The documentation for this class was generated from the following file: