Main Page | Modules | Namespace List | Class Hierarchy | Alphabetical List | Class List | File List | Namespace Members | Class Members | Related Pages | Search for

# tutorial/Lesson2/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