From 00e21770adb12b6dcb57ce6ceb9b3313a792612e Mon Sep 17 00:00:00 2001 From: evomarc Date: Sat, 2 Dec 2000 08:21:18 +0000 Subject: [PATCH] Changed the (abstract) name for fitness from F to FitT so it matches that of file eoFixedLength.h - it is far clearer in the documentation diagrams this way. --- eo/src/es/eoReal.h | 4 ++-- eo/src/ga/eoBin.h | 8 ++++---- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/eo/src/es/eoReal.h b/eo/src/es/eoReal.h index 1ca1247f..abf85fcc 100644 --- a/eo/src/es/eoReal.h +++ b/eo/src/es/eoReal.h @@ -34,7 +34,7 @@ /** eoReal: implementation of simple real-valued chromosome. * based on eoFixedLength class */ -template class eoReal: public eoFixedLength +template class eoReal: public eoFixedLength { public: @@ -43,7 +43,7 @@ template class eoReal: public eoFixedLength * @param size Size of the vector */ eoReal(unsigned size = 0, double value = 0.0): - eoFixedLength(size, value) {} + eoFixedLength(size, value) {} /// My class name. string className() const diff --git a/eo/src/ga/eoBin.h b/eo/src/ga/eoBin.h index 8616ec0b..40cd2e0c 100644 --- a/eo/src/ga/eoBin.h +++ b/eo/src/ga/eoBin.h @@ -48,7 +48,7 @@ \ingroup bitstring * based on STL's vector specialization. */ -template class eoBin: public eoFixedLength +template class eoBin: public eoFixedLength { public: @@ -57,7 +57,7 @@ template class eoBin: public eoFixedLength * @param size Size of the binary string. */ eoBin(unsigned size = 0, bool value = false): - eoFixedLength(size, value) {} + eoFixedLength(size, value) {} /// My class name. string className() const @@ -71,7 +71,7 @@ template class eoBin: public eoFixedLength */ void printOn(ostream& os) const { - EO::printOn(os); + EO::printOn(os); os << ' '; os << size() << ' '; copy(begin(), end(), ostream_iterator(os)); @@ -83,7 +83,7 @@ template class eoBin: public eoFixedLength */ void readFrom(istream& is) { - EO::readFrom(is); + EO::readFrom(is); unsigned s; is >> s; string bits;