Modified the names in eoPopStat!
Hoever, the way it's done now, the string gets TRUNCATED - and I dont' know why
This commit is contained in:
parent
1726a06861
commit
434010d221
2 changed files with 7 additions and 6 deletions
|
|
@ -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.
|
inside an eoFileMonitor, as the eoState construct will work much better there.
|
||||||
*/
|
*/
|
||||||
template <class EOT>
|
template <class EOT>
|
||||||
class eoPopString : public eoStat<EOT, string>
|
class eoPopStat : public eoStat<EOT, string>
|
||||||
{
|
{
|
||||||
public :
|
public :
|
||||||
/** default Ctor, void string by default, as it appears
|
/** default Ctor, void string by default, as it appears
|
||||||
on the description line once at beginning of evolution. and
|
on the description line once at beginning of evolution. and
|
||||||
is meaningless there */
|
is meaningless there */
|
||||||
eoPopString(string _desc ="") : eoStat<EOT, string>("", _desc) {}
|
eoPopStat(string _desc ="") : eoStat<EOT, string>("", _desc) {}
|
||||||
|
|
||||||
/** Fills the value() of the eoParam with the dump of the population.
|
/** 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
|
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.
|
inside an eoFileMonitor, as the eoState construct will work much better there.
|
||||||
*/
|
*/
|
||||||
template <class EOT>
|
template <class EOT>
|
||||||
class eoSortedPopString : public eoSortedStat<EOT, string>
|
class eoSortedPopStat : public eoSortedStat<EOT, string>
|
||||||
{
|
{
|
||||||
public :
|
public :
|
||||||
/** default Ctor, void string by default, as it appears
|
/** default Ctor, void string by default, as it appears
|
||||||
on the description line once at beginning of evolution. and
|
on the description line once at beginning of evolution. and
|
||||||
is meaningless there */
|
is meaningless there */
|
||||||
eoSortedPopString(string _desc ="") : eoSortedStat<EOT, string>("", _desc) {}
|
eoSortedPopStat(string _desc ="") : eoSortedStat<EOT, string>("", _desc) {}
|
||||||
|
|
||||||
/** Fills the value() of the eoParam with the dump of the population.
|
/** 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
|
Adds a \n before so it does not get mixed up with the rest of the stats
|
||||||
|
|
|
||||||
|
|
@ -292,8 +292,9 @@ void main_function(int argc, char **argv)
|
||||||
monitor.add(SecondStat);
|
monitor.add(SecondStat);
|
||||||
monitor.add(fdcStat);
|
monitor.add(fdcStat);
|
||||||
|
|
||||||
// test de eoPopStat
|
// test de eoPopStat and/or eoSortedPopStat
|
||||||
eoPopString<Indi> popStat("Dump of whole population");
|
// eoSortedPopStat<Indi> popStat("Dump of whole population");
|
||||||
|
eoPopStat<Indi> popStat("Dump of whole population");
|
||||||
checkpoint.add(popStat);
|
checkpoint.add(popStat);
|
||||||
monitor.add(popStat);
|
monitor.add(popStat);
|
||||||
|
|
||||||
|
|
|
||||||
Reference in a new issue