pairwise_kernels: Pairwise Kernels

Description Usage Arguments Value See Also Examples

View source: R/affinity.R

Description

Compute the kernel in arrays X.

Usage

1

Arguments

X

Array of pairwise kernels between samples.

kernel

The metric to use when calculating kernel between instances in a feature array.

Value

A kernel matrix K such that K_i, j is the kernel between the ith and jth vectors of the given matrix X.

See Also

kneighbors_graph

Examples

1
2
3
data(x)

affinity_matrix <- pairwise_kernels(X)

arthans/SpectralClustering documentation built on Dec. 19, 2021, 4:41 a.m.