Description Usage Arguments Examples
AMA_step_size
computes a step size based on the better of two bounds derived by Anderson
and Morely.
1 | AMA_step_size(w, n)
|
w |
vector of weights |
n |
number of points to cluster |
1 2 3 4 5 6 7 8 9 10 11 | data(mammals)
X <- as.matrix(mammals[,-1])
X <- t(scale(X,center=TRUE,scale=FALSE))
n <- ncol(X)
## Pick some weights and a sequence of regularization parameters.
k <- 5
phi <- 0.5
w <- kernel_weights(X,phi)
w <- knn_weights(w,k,n)
AMA_step_size(w,n)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.