Kmedians

K-Medians

CRAN Package

Online, Semi-online, and Offline K-medians algorithms are given. For both methods, the algorithms can be initialized randomly or with the help of a robust hierarchical clustering. The number of clusters can be selected with the help of a penalized criterion. We provide functions to provide robust clustering. Function gen_K() enables to generate a sample of data following a contaminated Gaussian mixture. Functions Kmedians() and Kmeans() consists in a K-median and a K-means algorithms while Kplot() enables to produce graph for both methods. Cardot, H., Cenac, P. and Zitt, P-A. (2013). "Efficient and fast estimation of the geometric median in Hilbert spaces with an averaged stochastic gradient algorithm". Bernoulli, 19, 18-43. doi:10.3150/11-BEJ390. Cardot, H. and Godichon-Baggioni, A. (2017). "Fast Estimation of the Median Covariation Matrix with Application to Online Robust Principal Components Analysis". Test, 26(3), 461-480 doi:10.1007/s11749-016-0519-x. Godichon-Baggioni, A. and Surendran, S. "A penalized criterion for selecting the number of clusters for K-medians" doi:10.48550/arXiv.2209.03597 Vardi, Y. and Zhang, C.-H. (2000). "The multivariate L1-median and associated data depth". Proc. Natl. Acad. Sci. USA, 97(4):1423-1426. doi:10.1073/pnas.97.4.1423.


Team


Insights

Last 30 days

This package has been downloaded 220 times in the last 30 days. Enough downloads to make a small wave in the niche community. The curiosity is spreading! The following heatmap shows the distribution of downloads per day. Yesterday, it was downloaded 7 times.

Sun
Mon
Tue
Wed
Thu
Fri
Sat
0 downloadsMar 2, 2025
0 downloadsMar 3, 2025
0 downloadsMar 4, 2025
15 downloadsMar 5, 2025
7 downloadsMar 6, 2025
5 downloadsMar 7, 2025
5 downloadsMar 8, 2025
1 downloadsMar 9, 2025
6 downloadsMar 10, 2025
8 downloadsMar 11, 2025
11 downloadsMar 12, 2025
7 downloadsMar 13, 2025
4 downloadsMar 14, 2025
12 downloadsMar 15, 2025
2 downloadsMar 16, 2025
2 downloadsMar 17, 2025
9 downloadsMar 18, 2025
10 downloadsMar 19, 2025
12 downloadsMar 20, 2025
6 downloadsMar 21, 2025
7 downloadsMar 22, 2025
6 downloadsMar 23, 2025
12 downloadsMar 24, 2025
15 downloadsMar 25, 2025
4 downloadsMar 26, 2025
7 downloadsMar 27, 2025
12 downloadsMar 28, 2025
2 downloadsMar 29, 2025
4 downloadsMar 30, 2025
4 downloadsMar 31, 2025
9 downloadsApr 1, 2025
9 downloadsApr 2, 2025
7 downloadsApr 3, 2025
0 downloadsApr 4, 2025
0 downloadsApr 5, 2025
1
15

The following line graph shows the downloads per day. You can hover over the graph to see the exact number of downloads per day.

Last 365 days

This package has been downloaded 3,444 times in the last 365 days. Now we’re talking! This work is officially 'heard of in academic circles', just like those wild research papers on synthetic bananas. The day with the most downloads was Jan 18, 2025 with 38 downloads.

The following line graph shows the downloads per day. You can hover over the graph to see the exact number of downloads per day.

Data provided by CRAN


Binaries


Dependencies

  • Imports8 packages