computeRandomSelection | R Documentation |
The function computeRandomSelection
is used internally by
the CoreCollection
object.
computeRandomSelection(dist, requiredN, preselected, seed)
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 |
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.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.