binary_value.h

00001 #include <eo>
00002 
00003 //-----------------------------------------------------------------------------
00004 
00009 // INIT
00010 double binary_value(const std::vector<bool>& _chrom)
00011 {
00012   double sum = 0;
00013   for (unsigned i = 0; i < _chrom.size(); i++)
00014     sum += _chrom[i];
00015   return sum;
00016 }
00017 

Generated on Thu Apr 19 11:02:26 2007 for EO by  doxygen 1.4.7