test/binary_value.h

00001 #include <algorithm>
00002 
00003 //-----------------------------------------------------------------------------
00004 
00010 template <class Chrom> double binary_value(const Chrom& _chrom)
00011 {
00012     double sum = 0.0;
00013     for (unsigned i=0; i<_chrom.size(); i++)
00014         sum += _chrom[i];
00015     return sum;
00016 }

Generated on Thu Oct 19 05:06:34 2006 for EO by  doxygen 1.3.9.1