ng_kernel: ng_kernel: Kernel from the Ng spectral clustering algorithm

Description Usage Arguments Value References Examples

View source: R/kernel_functions.R

Description

This is the kernel from the Ng spectral clustering algorithm. It takes a global sigma which requires tuning for new datasets in most cases. It is possible to use the sigma_finder function to find a sigma for a dataset. Sigma is assumed to be squared already.

Usage

1

Arguments

data

Data frame or matrix: with points as columns, features as rows

sigma

Numerical value: a global sigma that controls the drop off in affinity

Value

A similarity matrix of the input data

References

Ng, Andrew Y., Michael I. Jordan, and Yair Weiss. "On spectral clustering: Analysis and an algorithm." Advances in neural information processing systems. 2002.

Examples

1
ng_similarity <- ng_kernel(brain[[1]])

Spectrum documentation built on Feb. 10, 2020, 9:07 a.m.