eoVector is back (eoFixedLength and eoVariableLength are gone)

Also: introducing eoRndGenerators.h for eoRndGenerator derived classes:

  eoNormalGenerator
  eoUniformGenerator
  eoBooleanGenerator
  eoNegExpGenerator

Note the suffix that are added to aid in determining what these classes do
This commit is contained in:
maartenkeijzer 2001-02-17 10:51:31 +00:00
commit 025eb736ee
19 changed files with 222 additions and 350 deletions

View file

@ -29,12 +29,12 @@
#include <iostream> // ostream, istream
#include <string> // string
#include <eoFixedLength.h>
#include <eoVector.h>
/** eoReal: implementation of simple real-valued chromosome.
* based on eoFixedLength class
* based on eoVector class
*/
template <class FitT> class eoReal: public eoFixedLength<FitT, double>
template <class FitT> class eoReal: public eoVector<FitT, double>
{
public:
@ -42,15 +42,15 @@ template <class FitT> class eoReal: public eoFixedLength<FitT, double>
* (Default) Constructor.
* @param size Size of the vector
*/
eoReal(unsigned size = 0, double value = 0.0):
eoFixedLength<FitT, double>(size, value) {}
eoReal(unsigned size = 0, double value = 0.0):
eoVector<FitT, double>(size, value) {}
/// My class name.
string className() const
{
return "eoReal";
string className() const
{
return "eoReal";
}
};
//-----------------------------------------------------------------------------