rempirical: returns pseudo-random draws from an /empirical/

Description Usage Arguments Details Value Examples

View source: R/f3.rbsb4.code.r

Description

This function returns n independent pseudo-random draw from the /empirical/ object empi. The user is advised to manage the pseudo-random seed before calling this function. The object is normalized before being used (see normalize8empirical).

Usage

1
rempirical(n, empi)

Arguments

n

Wanted number of draws.

empi

The empirical object to consider.

Details

Just a call to qempirical with draw from the basic runif. But the bad convention of using length(n) when it is greater than 1 is not followed in case of rbsb.mck.

Value

A vector with length n containing the drawn values.

Examples

1
2
 rbsb3k("RESET"); # for R checking compliance (useless)
 dempirical(100, new("empirical"));

rbsb documentation built on May 31, 2017, 1:45 a.m.