Ray: generate samples from a Rayleigh distribution.

Description Usage Arguments Value Examples

Description

Implement a function to generate samples from a Rayleigh distribution,using antithetic variables.

Usage

1
Ray(x, r = 10000)

Arguments

x

is the number of samples

r

is the number of random data by runif ()

Value

the vector of generating from the Rayleigh distribution.

Examples

1
2
3
4
5
## Not run: 
x <- seq(0.1, 2.5, length = 10)
samples <- Ray(x)

## End(Not run)

woshiershixiong/StatComp18081 documentation built on May 12, 2019, 5:19 p.m.