sampleStar {SCEPtER} | R Documentation |
Sample a set of objects out of a grid
Description
The function extracts, without replacement, a sample of objects out of a grid.
Usage
sampleStar(n, grid, restrict=TRUE)
Arguments
n |
the number of objects to be sampled. |
grid |
the grid from which the objects are sampled. |
restrict |
logical flag indicating if only models younger than 14 Gyr should be considered. |
Value
sampleStar
returns a matrix of n
rows, sampled without
replacement from grid
.
Examples
data(stdGrid)
STARS <- sampleStar(10, stdGrid)
[Package SCEPtER version 0.2-4 Index]