ovl_knn.Rd
Calculate distribution overlap by KNN (K-Nearest neighbor) This function compares label of K-nearest neighbors and calculate how many labels are mismatch.
ovl_knn(x1, x2, k = 5)
x1 | A numeric vector. |
---|---|
x2 | A numeric vector. |
k | An integer. Number of k in KNN |
estimated overlap between two distributions (range: 0 to 1)
This code is adopted from AmRMR (paper) and modified by Seongyong Park. You can find their implementation in their websites. (Java, R) Many thanks to the professor Sejong Oh (Dankook University, sejongoh@dankook.ac.kr) who kindly share his work.
Seongyong Park (2020-08-18)
#> [1] 0.369