completed doc
git-svn-id: svn://scm.gforge.inria.fr/svnroot/paradiseo@671 331e1502-861f-0410-8da2-ba01fb791d7f
This commit is contained in:
parent
33761beb65
commit
984c076bf5
2 changed files with 56 additions and 21 deletions
|
|
@ -1,9 +1,9 @@
|
|||
// "peoEvalFuncPSO.h"
|
||||
|
||||
// (c) OPAC Team, October 2007
|
||||
|
||||
/*
|
||||
Contact: clive.canape@inria.fr
|
||||
/* "peoEvalFuncPSO.h"
|
||||
*
|
||||
*
|
||||
* (c) OPAC Team, October 2007
|
||||
*
|
||||
* Contact: clive.canape@inria.fr
|
||||
*/
|
||||
|
||||
#ifndef PEOEVALFUNCPSO_H
|
||||
|
|
@ -11,10 +11,9 @@
|
|||
|
||||
#include <eoEvalFunc.h>
|
||||
|
||||
/** peoEvalFuncPSO: This class
|
||||
* takes an existing function pointer and converts it into a evaluation
|
||||
* function class.
|
||||
*/
|
||||
//! peoEvalFuncPSO: This class
|
||||
//! takes an existing function pointer and converts it into a evaluation
|
||||
//! function class.
|
||||
|
||||
#ifdef _MSC_VER
|
||||
template< class POT, class FitT = POT::Fitness, class FunctionArg = const POT& >
|
||||
|
|
@ -26,7 +25,7 @@ struct peoEvalFuncPSO: public eoEvalFunc<POT> {
|
|||
peoEvalFuncPSO( FitT (* _eval)( FunctionArg ) )
|
||||
: eoEvalFunc<POT>(), evalFunc( _eval ) {};
|
||||
|
||||
//Applies the evaluation function to a PEO
|
||||
//!Applies the evaluation function to a PEO
|
||||
virtual void operator() ( POT & _peo )
|
||||
{
|
||||
_peo.fitness((*evalFunc)( _peo ));
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue