You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
but every time I run the code error will appear on line
[https://github.com/efficient/cuckoofilter/blob/master/src/cuckoofilter.h#L68]
error: no match for call to ‘(const cuckoofilter::TwoIndependentMultiplyShift) (const std::_cxx11::basic_string&)’
68 | const uint64_t hash = hasher(item);
| ^~~~
Hash function is the basis of such filters and so using a better hash function results in a better false positive rate. A poor hash function will have more "collisions" means the function produces same result for different input values and so will result in more false positives. @Tom-CaoZH
Activity
siara-cc commentedon May 13, 2023
I faced the same issue and it looks like according to the implementation the first parameter can only be
uint64_t.So I used following code:
CitiHash64can be found insrc/City.hin https://github.com/aappleby/smhasherTom-CaoZH commentedon Jul 7, 2023
I wonder adding a hash function whether will impact the results(like false positive and etc) @siara-cc
siara-cc commentedon Jul 7, 2023
Hash function is the basis of such filters and so using a better hash function results in a better false positive rate. A poor hash function will have more "collisions" means the function produces same result for different input values and so will result in more false positives. @Tom-CaoZH