recdf: Sample From an ECDF

View source: R/stats.R

recdfR 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)

litteR documentation built on Aug. 27, 2022, 1:05 a.m.