Displaying 1 result from an estimated 1 matches for "2nd_1".
Did you mean:
ind_1
2008 Dec 30
1
I would appreciate some help with clustering
...1 as much as possible at the center of its own cluster
Example. Say I have the following binary vector:
v <- c(0,0,1,0,0,0,0,1,0,1,0,0)
Then I have to get 3 clusters.
I can generate a matrix containing the distance of each element from each one of the
clusters center (the 1s):
1st_1 2nd_1 3rd_1
---|-----------------------------------
0 | 2 7 9
0 | 1 6 8
1 | 0 5 7
0 | 1 4 6
0 | 2 3 5
0 | 3 2 4
0 | 4 1 3
1 | 5...