Opened 12 years ago
Last modified 12 years ago
#1617 accepted task
API hclust y clara de R
Reported by: | Jorge | Owned by: | Jorge |
---|---|---|---|
Priority: | highest | Milestone: | TOL Packages |
Component: | Math | Version: | 3.1 |
Severity: | critical | Keywords: | |
Cc: | sdelfresno, César Pérez Álvarez, isanchez@… |
Description
Se solicita la implementación de un API para invocar desde TOL a las funciones hclust y clara de R.
Change History (10)
comment:1 Changed 12 years ago by
Status: | new → accepted |
---|
comment:2 Changed 12 years ago by
comment:3 Changed 12 years ago by
Para hclust
hay que calcular los representantes de los cluster, podemos usar un código similar al siguiente:
clusters = cutree(hclust(dist(USArrests)), k=5) # get 5 clusters # function to find medoid in cluster i clust.centroid = function(i, dat, clusters) { ind = (clusters == i) colMeans(dat[ind,]) } sapply(unique(clusters), clust.centroid, USArrests, clusters)
comment:4 Changed 12 years ago by
comment:7 Changed 12 years ago by
Cc: | isanchez@… added |
---|
comment:8 Changed 12 years ago by
comment:9 Changed 12 years ago by
Note: See
TracTickets for help on using
tickets.
(In [5432]) refs #1617, paquete Rcluster, contiene una primera implementacion de hclust