View source: R/VarID_functions.R
transitionProbs | R Documentation |
This function computes transition probabilities between clusters based on the link probabilities of the pruned k nearest neighbour graph.
transitionProbs(res, cl, pvalue = 0.01)
res |
List object with k nearest neighbour information returned by |
cl |
List object with clustering information, returned by the |
pvalue |
Positive real number between 0 and 1. All nearest neighbours with link probability |
Matrix of transition probabilities between clusters.
res <- pruneKnn(intestinalDataSmall,knn=10,alpha=1,no_cores=1,FSelect=FALSE)
cl <- graphCluster(res,pvalue=0.01)
probs <-transitionProbs(res,cl,pvalue=0.01)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.