find_ql {ppsbm} | R Documentation |
Convert index into group pair
Description
This function is the inverse of the conversion into
for the directed case
into
for the undirected case.
It takes the integer index corresponding to
and returns
.
Usage
find_ql(ind_ql, Q, directed = TRUE)
Arguments
ind_ql |
Converted |
Q |
Total number of groups |
directed |
Boolean for directed (TRUE) or undirected (FALSE) case |
Value
Group pair corresponding to the given index
Examples
# Convert the index 5 into a group pair for undirected graph
# and the index 8 into a group pair for directed graph
# where the total number of group is 3
ind_ql_dir <- 8
ind_ql_undir <- 5
Q <- 3
directedIndex <- find_ql(ind_ql_dir,Q)
undirectedIndex <- find_ql(ind_ql_undir,Q, FALSE)
[Package ppsbm version 0.2.2 Index]