Open FrancoisMasson1990 opened 4 years ago
Euclidean clustering is in the next part of the tutorial but also checked by adding the above code, still facing the same error.
Can you print out the error ?
There is no error as such yet because it is not going inside the main logic of the searchHealper function as the tree that is calling it is having Node as null. Can you check if the root is being passed properly to the function? Error: If condition check for empty tree is True (Line no. 58 in kdtree.h ) and hence it is printing out the "Empty Tree" which I have added as a debug code.
@FrancoisMasson1990 Can you please have a look again?
I thought I answered it in Udacity Knowledge. Basically you have to change to two lines in your code
if(node == NULL) replace by if (nullptr == node) and
if(node!= NULL) replace by if (nullptr != node)
Your kdtree.h seems correct but you are missing to complete the euclideanCluster function and the clusterHelper
and