Thanks to MS/VC++, eoParam mechanism is unable to handle std::vectors of stats. More...
#include <edoPopStat.h>
Public Member Functions | |
| edoPopStat (std::string _desc="") | |
| default Ctor, void std::string by default, as it appears on the description line once at beginning of evolution. | |
| void | operator() (const eoPop< EOT > &_pop) |
| Fills the value() of the eoParam with the dump of the population. | |
Thanks to MS/VC++, eoParam mechanism is unable to handle std::vectors of stats.
This snippet is a workaround: This class will "print" a whole population into a std::string - that you can later send to any stream This is the plain version - see eoPopString for the Sorted version
Note: this Stat should probably be used only within eoStdOutMonitor, and not inside an eoFileMonitor, as the eoState construct will work much better there.
Definition at line 48 of file edoPopStat.h.
| edoPopStat< EOT >::edoPopStat | ( | std::string | _desc = "" | ) | [inline] |
default Ctor, void std::string by default, as it appears on the description line once at beginning of evolution.
and is meaningless there. _howMany defaults to 0, that is, the whole population
Definition at line 58 of file edoPopStat.h.
| void edoPopStat< EOT >::operator() | ( | const eoPop< EOT > & | _pop | ) | [inline] |
Fills the value() of the eoParam with the dump of the population.
Definition at line 62 of file edoPopStat.h.