cdp {dpcc} | R Documentation |
L1 convex clustering with a single lambda.
Description
L1 convex clustering with a single lambda.
Usage
cdp(X, lam)
Arguments
X |
a data matrix of n * p or a data vector with length n. |
lam |
a tuning parameter. |
Details
A list with length p equal to the dimension of the data matrix. Each dimension includes a vector of the estimated centroids.
Value
the estimated centroids.
Examples
# 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)
[Package dpcc version 1.0.0 Index]