scanList
object
Internal.R/expDesign_sampling.R
focal_sample.Rd
Performs a focal-scan sampling over a scanList
object
Internal.
focal_sample( scan.list, sampling = c("even", "random", "function"), all.sampled = TRUE )
scan.list | a |
---|---|
sampling | for
|
all.sampled | logical scalar, should all nodes be sampled at least once? (TO CHECK: does it work with group-scan sampling?) |
an empirical scanList
object in which, compared to the theoretical.scanList
(added
to attrs
), edges not involving the scan's focal are replaced by NA
s (regardless of them
being 0 or 1).
Returned scanList
has new attributes added to attrs:
focalList
: 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
theoretical.scanList
: the original theoretical scanList
from which some edges have not been
observed