mlampros / ClusterR

Gaussian mixture models, k-means, mini-batch-kmeans and k-medoids clustering
https://mlampros.github.io/ClusterR/
84 stars 29 forks source link

why does "KMeans_arma" lacks some features? #31

Closed A-Pai closed 2 years ago

A-Pai commented 2 years ago

why does "KMeans_arma" lacks some features? just because it is hard to implement with Armadillo? image

mlampros commented 2 years ago

You have to consult the documentation of each function (KMeans_rcpp and KMeans_arma) and especially the "Value" section where it's described what each function returns. You'll observe that the "KMeans_rcpp" returns more output objects compared to the "KMeans_arma" function.

mlampros commented 2 years ago

I'll close the issue for now. Feel free to re-open it in case that the code does not work as expected.

mlampros commented 2 years ago

As an addition to mention that the "Kmeans_rcpp" is my implementation whereas the "Kmeans_arma" is a function developed by the Author of the C++ Armadillo library and called directly using RcppArmadillo in R. For more information regarding the "Armadillo" library and the Kmeans function you can consult the documentation and specifically kmeans

A-Pai commented 2 years ago

Do you mean that the features of KMeans_arma has been intentionally reduced in order to increase computing speed?