prng_from_sample: Get a PRNG from a sample

Description Usage Arguments

Description

prng_from_sample takes an arbitrary sample of data and returns a pseudo-random number generator.

Usage

1
2
prng_from_sample(x, cdf = ecdf(x), xmin = min(x, na.rm = T), xmax = max(x,
  na.rm = T))

Arguments

x

the sample, an numeric vector

cdf

the cdf of the sample's distribution. If unspecified, the empirical cdf is determined with ecdf.

xmin

the lowest possible value of the sample's distribution. Defaults to min(x).

xmax

the highest possible value of the sample's distribution. Defaults to max(x).


nobodyinperson/r-eventforecaster documentation built on May 6, 2019, 11:47 a.m.