diff --git a/eo/src/utils/eoPopStat.h b/eo/src/utils/eoPopStat.h index 9c7dc076..23708e17 100644 --- a/eo/src/utils/eoPopStat.h +++ b/eo/src/utils/eoPopStat.h @@ -48,13 +48,13 @@ Note: this Stat should probably be used only within eoStdOutMonitor, and not inside an eoFileMonitor, as the eoState construct will work much better there. */ template -class eoPopString : public eoStat +class eoPopStat : public eoStat { public : /** default Ctor, void string by default, as it appears on the description line once at beginning of evolution. and is meaningless there */ - eoPopString(string _desc ="") : eoStat("", _desc) {} + eoPopStat(string _desc ="") : eoStat("", _desc) {} /** Fills the value() of the eoParam with the dump of the population. Adds a \n before so it does not get mixed up with the rest of the stats @@ -86,13 +86,13 @@ Note: this Stat should probably be used only within eoStdOutMonitor, and not inside an eoFileMonitor, as the eoState construct will work much better there. */ template -class eoSortedPopString : public eoSortedStat +class eoSortedPopStat : public eoSortedStat { public : /** default Ctor, void string by default, as it appears on the description line once at beginning of evolution. and is meaningless there */ - eoSortedPopString(string _desc ="") : eoSortedStat("", _desc) {} + eoSortedPopStat(string _desc ="") : eoSortedStat("", _desc) {} /** Fills the value() of the eoParam with the dump of the population. Adds a \n before so it does not get mixed up with the rest of the stats diff --git a/eo/tutorial/Lesson3/exercise3.1.cpp b/eo/tutorial/Lesson3/exercise3.1.cpp index 3079ed12..c4c94030 100644 --- a/eo/tutorial/Lesson3/exercise3.1.cpp +++ b/eo/tutorial/Lesson3/exercise3.1.cpp @@ -292,8 +292,9 @@ void main_function(int argc, char **argv) monitor.add(SecondStat); monitor.add(fdcStat); - // test de eoPopStat - eoPopString popStat("Dump of whole population"); + // test de eoPopStat and/or eoSortedPopStat + // eoSortedPopStat popStat("Dump of whole population"); + eoPopStat popStat("Dump of whole population"); checkpoint.add(popStat); monitor.add(popStat);