Imputation of missing data: Recursive 1D discrete KNN algorithm

imputeMatrixNaNKnn takes a matrix as an input and fills the NaN values with the closest available.
513 Downloads
Updated 12 Nov 2012

View License

This is a simple utility for imputation of missing data in a given matrix. Assuming that missing data is represented by NaN values. It uses a simple
linear search with recursion to find the k-nearest neighbour.

Cite As

Mehmet Suzen (2024). Imputation of missing data: Recursive 1D discrete KNN algorithm (https://www.mathworks.com/matlabcentral/fileexchange/39025-imputation-of-missing-data-recursive-1d-discrete-knn-algorithm), MATLAB Central File Exchange. Retrieved .

MATLAB Release Compatibility
Created with R2012a
Compatible with any release
Platform Compatibility
Windows macOS Linux

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!
Version Published Release Notes
1.0.0.0