arf: Beta(a,b) distribution by the acceptance-rejection method

Description Usage Arguments Value Examples

View source: R/arf.R

Description

the required times of getting n points which satidfy Beta(a,b) distribution by the acceptance-rejection method

Usage

1
arf(n, a, b)

Arguments

n

the whole number of Beta distribution

a

the first parameter of Beta distribution

b

the second parameter of Beta distribution

Value

times n

Examples

1
2
3
4
5
6
7
## Not run: 
n=1000
a=3
b=2
arf(1000,3,2)

## End(Not run)

lvyuewen/StatComp18089 documentation built on May 5, 2019, 11:07 p.m.