Re: [R] Laplacian Distribution

From: Rolf Turner <rolf_at_math.unb.ca>
Date: Wed 07 Jul 2004 - 00:54:38 EST


> Could anybody please tell me how to generate Laplacian distributed
> random numbers? Thanks.

	Yes.  Generate random uniforms and then apply the
	inverse cumulative distribution function of the
	Laplace distribution to these.

	It's about 2 lines of code.  Figure it out.

				cheers,

					Rolf Turner
					rolf@math.unb.ca

P. S. Is this a homework problem?



R-help@stat.math.ethz.ch mailing list
https://www.stat.math.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html Received on Wed Jul 07 00:59:22 2004

This archive was generated by hypermail 2.1.8 : Wed 03 Nov 2004 - 22:54:44 EST