add tests interfaces as examples in the doc ; remove unused test binaries ; some code formating

This commit is contained in:
Johann Dreo 2010-11-07 23:12:28 +01:00
commit bd236ee67f
54 changed files with 129 additions and 1410 deletions

View file

@ -39,10 +39,13 @@
*
* Use them with eoStats, eoUpdater and eoMonitor to get statistics at each generation.
*
* @see eoStats
* @see eoStat
* @see eoMonitor
* @see eoUpdater
*
* Example of a test program using checkpointing:
* @include t-eoCheckpointing.cpp
*
* @ingroup Utilities
*
* @{

View file

@ -247,6 +247,8 @@ private:
*/
std::map< std::ostream*, int > _standard_io_streams;
};
/** @example t-eoLogger.cpp
*/
namespace eo
{

View file

@ -438,6 +438,8 @@ private:
*/
eoRng& operator=(const eoRng&);
};
/** @example t-eoRNG.cpp
*/

View file

@ -33,6 +33,12 @@
/**
\defgroup Real Vector of reals
Set of classes related to continuous black-box optimization problems.
Here are several examples of test programs using eoReal, eoEsSimple, eoEsStdev or eoEsFull to build an Evoution Strategies algorithm:
@include t-eoESAll.cpp
@include t-eoESFull.cpp
@ingroup Representations
*/

View file

@ -88,12 +88,16 @@ template <class T = double> class eoUniformGenerator : public eoRndGenerator<T>
for ints and unsigneds
*/
T operator()(void) { return minim+static_cast<T>(uniform.uniform(range)); }
/** @example t-eoUniform.cpp
*/
private :
T minim;
T range;
eoRng& uniform;
};
/** @example t-eoRandom.cpp
*/
/// Specialization for bool, does an unbiased coin flip

View file

@ -407,6 +407,8 @@ private :
}
};
/** @example t-eoSSGA.cpp
*/
template <class EOT>
class eoDistanceStat : public eoStat<EOT, double>

View file

@ -132,5 +132,7 @@ private :
eoState& operator=(const eoState&);
};
/** @example t-eoStateAndParser.cpp
*/
#endif