Generate data with rejection method

前端 未结 0 415
野的像风
野的像风 2021-01-25 02:41

I have the PDF f(x)= ( (0.35^2)/ 1.35 ) * (1 + y) * exp(-0.35 * y) and I want to generate data, so I used the rejection method and my code is:

g=function(x){
exp(         


        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题