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

# test/real_value.h

    00001 #include <vector>
    00002 //-----------------------------------------------------------------------------
    00003
    00004
    00010 double real_value(const std::vector<double>& _ind)
    00011 {
    00012   double sum = 0;
    00013   for (unsigned i = 0; i < _ind.size(); i++)
    00014       sum += _ind[i] * _ind[i];
    00015   return sum/_ind.size();
    00016 }
    00017
    00018
    00019