[R] Laplacian Distribution

Rolf Turner rolf at math.unb.ca
Tue Jul 6 16:54:38 CEST 2004


> 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 at math.unb.ca

P. S.  Is this a homework problem?




More information about the R-help mailing list