graphMatrix {Vicus} | R Documentation |
Graph Laplacian type matrix
Description
A symmetric matrix is returned.
Usage
graphMatrix(X, algorithm=c("Vicus", "LEM", "HLLE"),
K=10, alpha=0.9, ndim=2)
Arguments
X |
A numeric matrix (n times p). |
algorithm |
Algorithm to construct a graph matrix. Vicus matrix (Vicus), Graph Laplacian matrix (LEM), and Hessian Locally Linear Embedding matrix (HLLE) are available (Default: "Vicus"). |
K |
The number of neighborhoods to construct a graph matrix (Default: 10). |
alpha |
An optional parameter for Vicus (Default: 0.9). |
ndim |
The number of lower dimension to embed the graph (Default: 2). |
Value
M: A symmetric matrix (n times n). This matrix can be applied to embedding function. algorithm: algorithm parameter specified by argument ndim: ndim parameter specified by argument
Author(s)
Koki Tsuyuzaki
See Also
Examples
X <- matrix(runif(10*20), nrow=10, ncol=20)
str(graphMatrix(X, K=2), 2)
[Package Vicus version 0.99.0 Index]