recdf {litteR}R Documentation

Sample From an ECDF

Description

Type stable implementation of an Empirical Cumulative Distribution Function (ECDF) sampler.

Usage

recdf(x, n)

Arguments

x

numeric vector

n

number of draws

Value

vector of n elements of the same type as x

See Also

ecdf

Examples

recdf(1:5, 10)

[Package litteR version 1.0.0 Index]