sampleBinStar: Sample a set of binary systems out of a grid

Description Usage Arguments Value Examples

View source: R/SCEPtERbinary.R

Description

The function extracts, without replacement, a sample of binary systems out of a grid.

Usage

1
2

Arguments

n

the number of objects to be sampled.

grid

the grid from which the objects are sampled.

block

the length of blocks of the same initial metallicity [Fe/H]

restrict

logical flag indicating if only models younger than 14 Gyr should be considered.

parallel

logical flag indicating if the estimations should be performed in parallel on a multi-core architecture.

Value

sampleBinStar returns a matrix of n rows, sampled without replacement from grid. A maximum age difference of 10 Myr is allowed in the binary system selection.

Examples

1
2
3
4
5
require(SCEPtER)
data(stdGrid)

bl <- block(stdGrid)
sam <- sampleBinStar(10, stdGrid, bl, restrict=TRUE)

SCEPtERbinary documentation built on May 2, 2019, 9:24 a.m.