string FreqTable::toString() { stringstream ss; std::cout <<"tTot:"<<"\t"<<this->tTot<<endl; boost::unordered_map<SNP, int>::iterator iter; for (iter = this->idMap.begin(); iter != this->idMap.end(); ++iter) { const SNP v = iter->first; double length = this->branchLengths[iter->second]; if (length > 0) { ss << length / this->tTot; for (vector<int>::const_iterator it2 = v.begin(); it2 != v.end(); ++it2) { ss << "\t" << (*it2); } ss << endl; } } return ss.str(); }