Draw the list of focals to sample at each scan
draw_focalList(
scan.list,
sampling = c("even", "random", "function"),
all.sampled = TRUE
)
Arguments
| scan.list |
a scanList object |
| sampling |
for method = "focal, users should input either:
a character scalar: for common sampling regimes:
"even": select focals as evenly as possible, and the extra scans uniformly
"random": uniform probability of choosing a focal at each scan
a user-defined function ("function"): a function of the adjacency matrix Adj (can be
named anything) that returns a vector of the probabilities of choosing a focal node at each
scan
WIP: more option to be added, like with the possibility to pass a focalList object directly
|
| all.sampled |
logical scalar, should all nodes be sampled at least once? (TO CHECK: does it
work with group-scan sampling?) |
Value
named integer vector representing the node's index (row/column) to be sampled for each
scan. Names are obtain from the adjacency matrix Adj, the vector's length is equal to
n.scans