Weighted K-Nearest Neighbors (WKNN)
Version 1.0.0 (1.66 MB) by
Majid Farzaneh
Weighted K-Nearest Neighbors (WKNN) classifier
Weighted K-Nearest Neighbors (WKNN) classifier.
Every neighbor sample has a weight based on its distance to the test sample. Nearer neighbors have bigger weights in the voting.
Cite As
Majid Farzaneh (2026). Weighted K-Nearest Neighbors (WKNN) (https://uk.mathworks.com/matlabcentral/fileexchange/74111-weighted-k-nearest-neighbors-wknn), MATLAB Central File Exchange. Retrieved .
MATLAB Release Compatibility
Created with
R2019b
Compatible with any release
Platform Compatibility
Windows macOS LinuxCategories
- AI and Statistics > Statistics and Machine Learning Toolbox > Cluster Analysis and Anomaly Detection > Nearest Neighbors >
Find more on Nearest Neighbors in Help Center and MATLAB Answers
Tags
Discover Live Editor
Create scripts with code, output, and formatted text in a single executable document.
| Version | Published | Release Notes | |
|---|---|---|---|
| 1.0.0 |
