This is a more efficient implementation of the private "lsqisotonic" function for the "mdscale" function in the statistics toolbox, which performs non-metric multi-dimensional scaling.
In non-metric multi-dimensional scaling, one of the steps is to find a monotone regression of the dissimilarities that has the least squared error, which is the what the function "lsqisotonic" does. During this procedure, it is necessary to repeatedly merge adjacent monotone blocks.
The original implementation uses an iterative procedure, which has a complexity of O(n) per iteration, and O(n^2) overall. When n, the number of data points, is large (say, > 1000), the "lsqisotonic" function may be very slow. I replaced it with a non-iterative procedure that has an overall complexity of O(n).
引用格式
Yun Wang (2024). lsqisotonic(x,y,w) (https://www.mathworks.com/matlabcentral/fileexchange/64933-lsqisotonic-x-y-w), MATLAB Central File Exchange. 检索时间: .
MATLAB 版本兼容性
平台兼容性
Windows macOS Linux类别
- AI and Statistics > Statistics and Machine Learning Toolbox > Dimensionality Reduction and Feature Extraction >
标签
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!版本 | 已发布 | 发行说明 | |
---|---|---|---|
1.0.0.0 |