knn_weights {cvxclustr} | R Documentation |
knn_weights
takes a weight vector w
and sets the ith
component w[i]
to zero if either of the two corresponding nodes
is not among the other's k
nearest neighbors.
knn_weights(w, k, n)
w |
A vector of nonnegative weights. The ith entry |
k |
The number of nearest neighbors |
n |
The number of data points. |
A vector w of weights for convex clustering.
Eric C. Chi, Kenneth Lange