Learn R Programming

lfda (version 1.1.0)

getAffinityMatrix: Get Affinity Matrix

Description

This function returns an affinity matrix within knn-nearest neighbors from the distance matrix.

Usage

getAffinityMatrix(distance2, knn, nc)

Arguments

Value

an affinity matrix - the larger the element in the matrix, the closer two data points are