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

# 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 }