Commit 1e544b5c authored by Carsten Kemena's avatar Carsten Kemena

cleaning

parent 5af92271
......@@ -82,9 +82,9 @@ words2arrangement(multiset<pair<size_t, std::pair<unsigned short, bool> > > &wor
}
return arrangement;
}
/*
BSDL::DomainArrangement<BSDL::Domain>
words2arrangement2(multiset<pair<size_t, std::pair<unsigned short, bool> > > &wordList, int max_dist, float min_count)
words2arrangement2(multiset<pair<size_t, std::pair<unsigned short, bool> > > &wordList, unsigned int max_dist, float min_count)
{
struct Helper
{
......@@ -145,6 +145,7 @@ words2arrangement2(multiset<pair<size_t, std::pair<unsigned short, bool> > > &wo
}
return arrangement;
}
*/
/**
* \brief Reads RADIANT database.
......@@ -185,10 +186,8 @@ readDatabase(const fs::path &inFile, std::unordered_map<PrefixType, vector<Suffi
void
assignWords(const fs::path &inFile, BSDL::SequenceSet<BSDL::Sequence<> > &seqSet, vector<multiset<pair<size_t, pair<unsigned short, bool> > > > &assignments, bool reverse)
{
auto start = std::chrono::steady_clock::now();
RadiantDB database;
database.read(inFile);
auto middle = std::chrono::steady_clock::now();
size_t nSeqs = seqSet.size();
assignments.resize(nSeqs);
PrefixType prefix;
......@@ -229,9 +228,6 @@ assignWords(const fs::path &inFile, BSDL::SequenceSet<BSDL::Sequence<> > &seqSet
}
}
}
auto end = std::chrono::steady_clock::now();
std::cout << (std::chrono::duration_cast< std::chrono::milliseconds>(middle - start)).count() << "\n";
std::cout << (std::chrono::duration_cast< std::chrono::milliseconds>(end - middle)).count() << "\n";
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment