Rayleighsample: generate samples from a Rayleigh distribution

Description Usage Arguments Value Examples

View source: R/Rayleighsample.R

Description

a function to generate samples from a Rayleigh distribution

Usage

1
Rayleighsample(n, sigma, antithetic = TRUE)

Arguments

n

number of observations

sigma

non-negative parameter of the Rayleigh distribution

antithetic

logical;if TRUE the antithetic variables method will be used

Value

the random samples of size n

Examples

1
2
3
4
5
6
## Not run: 
Rayleighsample(1000,2)
sample=Rayleighsample(1000,2,antithetic=FALSE)
plot(sample)

## End(Not run)

zhzhy1/StatComp18054 documentation built on May 25, 2019, 5:01 a.m.