You are now following this Submission
- You will see updates in your followed content feed
- You may receive emails, depending on your communication preferences
K nearest neighbor with new features:
1. Configurable Label Weight Prior
2. Calculate distance chunck by chunck (Parallel in the future)
3. Rough estimate of posterior label probability
4. Configurable voting matrix
5. Fully vectorized
Currently a not-so-stable version, if you have any problems, please report here.
@kuantkid
Cite As
Wei LI (2026). K Nearest Neighbor (https://www.mathworks.com/matlabcentral/fileexchange/38004-k-nearest-neighbor), MATLAB Central File Exchange. Retrieved .
Acknowledgements
Inspired by: Computing Pairwise Distances and Metrics
General Information
- Version 1.1.0.0 (2.59 KB)
MATLAB Release Compatibility
- Compatible with any release
Platform Compatibility
- Windows
- macOS
- Linux
