Given a kNN attribute neighbor list and a listw object, find the number of matches given a conditional permutation.
Arguments
- knn_nb
a list with numeric elements. For example as made by
dbscan::adjacencylist()
- listw
a listw object likely created by recreate_listw.