Closed A-Pai closed 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.
I'll close the issue for now. Feel free to re-open it in case that the code does not work as expected.
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
Do you mean that the features of KMeans_arma has been intentionally reduced in order to increase computing speed?
why does "KMeans_arma" lacks some features? just because it is hard to implement with Armadillo?