kernel_weights: Compute Gaussian Kernel Weights

Description Usage Arguments Value

View source: R/util.r

Description

kernel_weights computes Gaussian kernel weights given a data matrix X and a scale parameter phi. Namely, the lth weight w[l] is given by

w[l] = exp(-phi ||X[,i]-X[,j]||^2)

, where the lth pair of nodes is (i,j).

Usage

1
kernel_weights(X, phi = 1)

Arguments

X

The data matrix to be clustered. The rows are the features, and the columns are the samples.

phi

The nonnegative parameter that controls the scale of kernel weights

Value

A vector w of weights for convex clustering.


cvxbiclustr documentation built on May 2, 2019, 9:34 a.m.