computeRandomSelection {coreCollection} | R Documentation |
Compute a random selection
Description
The function computeRandomSelection
is used internally by
the CoreCollection
object.
Usage
computeRandomSelection(dist, requiredN, preselected, seed)
Arguments
dist |
distance matrix, used for distances and implicitly defining the set of entries |
requiredN |
the required size of the random selection |
preselected |
a list of preselected entries, referring to the row/column of |
seed |
the applied seed for the randomizer |
Details
This function returns a random selection of approximately size
requiredN
by choosing entries sequentually and randomly, while excluding all entries
within a certain radius of an entry chosen before, and by finding iteratively the most
appropiate radius to end up with a number close to requiredN
of selected entries.
[Package coreCollection version 0.9.5 Index]