getAffinityMatrix: Get Affinity Matrix

Description Usage Arguments Value

View source: R/helpers.R

Description

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

Usage

1
getAffinityMatrix(distance2, knn, nc)

Arguments

distance2

The distance matrix for each observation

knn

The number of nearest neighbors

nc

The number of observations for data in this class

Value

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


lfda documentation built on Aug. 1, 2019, 1:04 a.m.