Efficient K-Nearest Neighbor Search using JIT
Nota dell'editore: Popular File 2008
This is a small but efficient tool to perform K-nearest neighbor search, which has wide Science and Engineering applications, such as pattern recognition, data mining and signal processing.
The code was initially implemented through vectorization. After discussions with John D'Errico, I realized that my algorithm will suffer numerical accurancy problem for data with large values. Then, after trying several approaches, I found simple loops with JIT acceleration is the most efficient solution. Now, the performance of the code is comparable with kd-tree even the latter is coded in a mex file.
The code is very simple, hence is also suitable for beginner to learn knn search.
Cita come
Yi Cao (2024). Efficient K-Nearest Neighbor Search using JIT (https://www.mathworks.com/matlabcentral/fileexchange/19345-efficient-k-nearest-neighbor-search-using-jit), MATLAB Central File Exchange. Recuperato .
Compatibilità della release di MATLAB
Compatibilità della piattaforma
Windows macOS LinuxCategorie
- AI and Statistics > Statistics and Machine Learning Toolbox >
- MATLAB > Mathematics > Computational Geometry > Delaunay Triangulation >
Tag
Riconoscimenti
Ispirato da: distance.m, KD Tree Nearest Neighbor and Range Search, nearestpoint(x, y, m), nearestneighbour.m, IPDM: Inter-Point Distance Matrix
Ispirato: Compute surface variation
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!Scopri Live Editor
Crea script con codice, output e testo formattato in un unico documento eseguibile.