Assuming that the hyperplane query dimensions always differ by one from the dimension of data, the following 2 assertions (in the links below) cannot hold simultaneously as data and query will always have different dimensions (or at least they should do so). I tried to use your code for a university project and it just came across, so I am not sure this is the correct way, I am probably missing something but I would be glad you to explain a bit more in case I am wrong.
|
assert randu.length == m * l * data.length; |
|
assert randu.length == m * l * query.length; |
Good job and thanks!
Assuming that the hyperplane query dimensions always differ by one from the dimension of data, the following 2 assertions (in the links below) cannot hold simultaneously as data and query will always have different dimensions (or at least they should do so). I tried to use your code for a university project and it just came across, so I am not sure this is the correct way, I am probably missing something but I would be glad you to explain a bit more in case I am wrong.
hyperplane-hash/src/main/java/io/github/stepping1st/hh/hash/BHHash.java
Line 38 in f069d72
hyperplane-hash/src/main/java/io/github/stepping1st/hh/hash/BHHash.java
Line 56 in f069d72
Good job and thanks!