Commit 33188375 authored by Mathieu Giraud's avatar Mathieu Giraud Committed by CI

core/kmerstore.h: use pow() to compute index load

1 << (2 * k) may be not reliable for large k :-)
parent 9c0d6b97
......@@ -276,7 +276,7 @@ void IKmerStore<T>::insert(const seqtype &sequence,
template<class T>
float IKmerStore<T>::getIndexLoad() const {
return nb_kmers_inserted*1. / (1 << (2 * k));
return nb_kmers_inserted / pow(4.0, k);
}
template<class T>
......
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