trans_to_gen: transform the sample function to generator,generator means...

Description Usage Arguments Value Examples

Description

transform the sample function to generator,generator means only need to input n then you can get simulation data

Usage

1
trans_to_gen(sample_function, ...)

Arguments

sample_function

sample function

...

parameter in sample function exept n

Value

a function

Examples

1
2
gen=trans_to_gen(runif,3,4)
gen(10)

hans1996/simulation documentation built on June 18, 2019, 12:35 a.m.