R prob = TRUE in hist doesn't give out a density distribution

后端 未结 0 1520
孤街浪徒
孤街浪徒 2020-11-30 12:12
earthquake <- function(lambda=1, n_sim =10, n=100){
  meanls <- c()
  for (i in 1:n){
    meanls <- c(meanls,round(mean(rexp(n_sim,1/lambda)),2))
  }
  retu         


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