AMA_step_size: Compute step size Anderson-Morely upper bound on the largest...

Description Usage Arguments Examples

Description

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

Usage

1

Arguments

w

vector of weights

n

number of points to cluster

Examples

 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)

elong0527/scvxclustr documentation built on May 16, 2019, 3:56 a.m.