Al momento, stai seguendo questo contributo
- Vedrai gli aggiornamenti nel tuo feed del contenuto seguito
- Potresti ricevere delle email a seconda delle tue preferenze per le comunicazioni
The present code is a Matlab function that provides a generation of random numbers with Laplace (double exponential) distribution, similarly to built-in Matlab functions “rand” and “randn”. The output of the function is a matrix with Laplacian distributed numbers with mean value mu = 0 and standard deviation sigma = 1. If other values of mu and sigma are a must, then the following form could be used: mu + sigma*randl(m, n).
An example is given in order to clarify the usage of the function. For convenience, the input and output arguments are given in the beginning of the function.
The code is based on the theory described in:
[1] S. Kotz, T. Kozubowski, K. Podgorski. The Laplace Distribution and Generalizations. New York, Springer Science & Business Media, 2001.
Cita come
Hristo Zhivomirov (2026). Generation of Random Numbers with Laplace Distribution (https://it.mathworks.com/matlabcentral/fileexchange/53397-generation-of-random-numbers-with-laplace-distribution), MATLAB Central File Exchange. Recuperato .
Riconoscimenti
Ispirato: randl+fitl, Histogram with a Laplace Distribution Fit, Cumulative Distribution Function of the Laplace Distribution
Informazioni generali
- Versione 1.4.0.0 (2,28 KB)
Compatibilità della release di MATLAB
- Compatibile con qualsiasi release
Compatibilità della piattaforma
- Windows
- macOS
- Linux
