Bernoulli: Bernoulli Sampling

Description Usage Arguments Value author References

Description

The data is filtered randomly using a Bernoulli trial for each tuple.

Usage

1
Bernoulli(data, p = 0.5, rng = "mt19937_64")

Arguments

data

A waypoint.

p

The probability that a tuple passes the filter.

rng

A length-one character vector specifying the random number generator used. It should correspond to an engine in the C++ header <random>.

Value

A waypoint that has been filtered randomly.

author

Jon Claus, jonterainsights@gmail.com, Tera Insights, LLC.

References

hrefhttp://en.cppreference.com/w/cpp/numeric/randomC++ reference for a list of random number generators. hrefhttp://en.wikipedia.org/wiki/Bernoulli_samplingWikipedia for information about Bernoulli sampling.


tera-insights/gtBase documentation built on May 31, 2019, 8:35 a.m.