Description Usage Arguments Details Value Examples
L1 convex clustering with a single lambda.
1 | cdp(X, lam)
|
X |
a data matrix of n * p or a data vector with length n. |
lam |
a tuning parameter. |
A list with length p equal to the dimension of the data matrix. Each dimension includes a vector of the estimated centroids.
the estimated centroids.
1 2 3 4 5 | # generate a data matrix with n = 10 and p = 2.
X = matrix(rnorm(10*2), 10, 2)
lam = find_lambda(X)/2
# set a tuning parameter lambda.
cdp(X, lam)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.