AMA_step_size {cvxclustr}R Documentation

Compute step size Anderson-Morely upper bound on the largest eigenvalue of the Laplacian

Description

AMA_step_size computes a step size based on the better of two bounds derived by Anderson and Morely.

Usage

AMA_step_size(w, n)

Arguments

w

vector of weights

n

number of points to cluster

Examples

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)

[Package cvxclustr version 1.1.1 Index]