[R] rlnorm(n, meanlog = 0, sdlog = 1)

Rui Barradas ruipbarradas at sapo.pt
Fri May 10 18:03:33 CEST 2013


Hello,

R is open source, you can download the sources and then grep rlnorm to see

file: src/library/stats/distn.R

rlnorm <- function(n, meanlog=0, sdlog=1)
     .External(C_rlnorm, n, meanlog, sdlog)


And file rlnorm.c is in src/nmath. It returns exp(rnorm(meanlog, sdlog))
So you'll have to write rnorm (file in the same directory) in c#.

Hope this helps,

Rui Barradas


Em 10-05-2013 16:42, Dr. Alireza Zolfaghari escreveu:
> Hi list,
> Does anyone know the code behind rlnorm(n, meanlog = 0, sdlog = 1)? I am
> going to write it in c#.
>
> thanks
> Alireza
>
> 	[[alternative HTML version deleted]]
>
> ______________________________________________
> R-help at r-project.org mailing list
> https://stat.ethz.ch/mailman/listinfo/r-help
> PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
> and provide commented, minimal, self-contained, reproducible code.
>



More information about the R-help mailing list