* make_genotype_real.h (eoEsChromInit): Rewrite vecSigmaInit-handling:
If sigmaInit is relative (%), do not read vecSigmaInit. Otherwise always use vecSigmaInit with default all values of sigmaInit. * eoParser.h (eoParser::getORcreateParam): Make this a real if-then-else clause around ptParam (found or not). * eoParam.h (eoValueParam::setValue): Document. (eoValueParam<std::vector<double> >::setValue): Allow delimiters ',' and ';'. A plain ' ' does not work, as it is not correctly read by eoParser::readFrom.
This commit is contained in:
parent
20c3369349
commit
d7b935b645
8 changed files with 95 additions and 46 deletions
|
|
@ -24,6 +24,7 @@ Contact: http://eodev.sourceforge.net
|
|||
#ifndef _eoEsChromInit_H
|
||||
#define _eoEsChromInit_H
|
||||
|
||||
#include <algorithm>
|
||||
#include <cmath>
|
||||
#include <vector>
|
||||
|
||||
|
|
@ -106,9 +107,12 @@ public:
|
|||
@param _bounds bounds for uniform initialization
|
||||
@param _sigma initial value for the stddev
|
||||
*/
|
||||
eoEsChromInit(eoRealVectorBounds& _bounds, std::vector<double> _vecSigma)
|
||||
eoEsChromInit(eoRealVectorBounds& _bounds, const std::vector<double>& _vecSigma)
|
||||
: eoRealInitBounded<EOT>(_bounds), uniqueSigma(_vecSigma[0]), vecSigma(_vecSigma)
|
||||
{}
|
||||
{
|
||||
assert(_bounds.size() == size());
|
||||
assert(_vecSigma.size() == size());
|
||||
}
|
||||
|
||||
|
||||
void operator()(EOT& _eo)
|
||||
|
|
|
|||
Reference in a new issue