ECF 1.5
RealValueGenotype.h
1#ifndef RVG_H_
2#define RVG_H_
3
4#include "./Genotype.h"
5
20
21protected:
22 double minValue_;
23 double maxValue_;
25
26
27public:
28 std::vector<double> realValue;
29
31 double getLBound ()
32 { return minValue_; }
33
35 double getUBound ()
36 { return maxValue_; }
37
39 virtual bool update (void)
40 { return true; }
41
42};
43typedef boost::shared_ptr<RealValueGenotype> RealValueGenotypeP;
44
45#endif
Genotype base class.
Definition: Genotype.h:36
RealValueGenotype class - abstract genotype class for genotypes that represent a vector of real value...
virtual bool update(void)
Update genotype after genetic material change via genetic operators.
double getUBound()
return upper bound of the defined interval
uint nDimension_
dimensionality
double minValue_
lower bound
double maxValue_
upper bound
std::vector< double > realValue
vector of floating point values
double getLBound()
return lower bound of the defined interval