R/LEM.R

Defines functions .LEM

# Laplacian Eigenmaps
.LEM <- function(X, K, alpha, ndim){
    # kNN-adjacency matrix
    A <- .knn_adjacency(X, K)
    # Graph Laplacian matrix
    D <- .spDiagMatrix(K, nrow(X))
    D - A
}

Try the Vicus package in your browser

Any scripts or data that you put into this service are public.

Vicus documentation built on March 31, 2023, 7:24 p.m.