View source: R/VarID_functions.R
createKnnMatrix | R Documentation |
This creates an adjacency matrix, keeping only nearest neighbour with a link probability above a minimum probability
createKnnMatrix(res, pvalue = 0.01)
res |
List object with k nearest neighbour information returned by |
pvalue |
Positive real number between 0 and 1. All nearest neighbours with link probability |
Adjacency matrix in sparse matrix format (see package Matrix) with positive non-zero entries only for k nearest neighours with link probability >= pvalue
. The value of these entries equals the link probability.
res <- pruneKnn(intestinalDataSmall,knn=10,alpha=1,no_cores=1,FSelect=FALSE)
y <- createKnnMatrix(res,pvalue=0.01)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.