10 UniquePop::UniquePop()
13 UniquePop::~UniquePop()
17 bool UniquePop::Insert(
const tfitvec &fitness,
20 pair<tmembermap::iterator, bool> insertresult = MemberHashMap.insert(
21 std::make_pair(popmember,fitness));
22 return insertresult.second;
27 tmembermap::iterator FindPos = MemberHashMap.find(popmember);
28 if (FindPos == MemberHashMap.end())
31 fitness = FindPos->second;
36 void UniquePop::PrintAll(std::ostream &output)
38 tmembermap::iterator outit;
40 for (outit = MemberHashMap.begin(); outit != MemberHashMap.end(); ++outit)
42 output << setprecision(10);
43 copy(outit->first.begin(), outit->first.end(), ostream_iterator<
44 double> (output,
" "));
46 copy(outit->second.begin(), outit->second.end(),
47 ostream_iterator<double> (output,
" "));
ublas::vector< double > ttranscribed
ublas::vector< double > tfitvec