make.affinity: Calculate affinity

View source: R/transformation.R

make.affinityR Documentation

Calculate affinity

Description

Code from https://www.di.fc.ul.pt/~jpn/r/spectralclustering/spectralclustering.html Done applying a k-nearest neighboor filter to build a representation of a graph. connecting just the closest dataset points. However, to be symmetric, if Aij is selected as a nearest neighboor, so will Aji.

Usage

make.affinity(S, n.neighboors = 2)

Arguments

S

<matrix> Matrix to evaluate

n.neighboors

<int> Number of neighboors

Value

Affinity matrix


biggproject/biggr documentation built on Oct. 2, 2024, 11:13 p.m.