Learn R Programming

gasper (version 1.1.3)

adjacency_mat: Compute the adjacency matrix of the gaussian weighted graph

Description

Compute the adjacency matrix of the gaussian weighted graph

Usage

adjacency_mat(
  pts,
  f = function(x) {
     exp(-x^2/8)
 },
  s = 0
)

Arguments

pts

coordinates of N points in \(R^3\).

f

is a scalar potential (\(\exp(-x^2/2t^2)\) for gaussian potential)

s

is a threhold to sparisfy the matrix

See Also

laplacian_mat, swissroll

Examples

Run this code
pts <- swissroll(N=100, seed=0, a=1, b=4)
W <- adjacency_mat(pts)

Run the code above in your browser using DataLab