Laplacian Noise
RANDL Laplacian distributed pseudorandom numbers. R = RANDL(N) returns an N-by-N matrix containing pseudorandom values drawn from the laplacian distribution. RANDL(M,N) or RANDL([M,N]) returns an M-by-N matrix. RANDL(M,N,P,...) or RANDN([M,N,P,...]) returns an M-by-N-by-P-by-... array. RANDL returns a scalar. RANDL(SIZE(A)) returns an array the same size as A.
Note: The size inputs M, N, P, ... should be nonnegative integers.
Negative integers are treated as 0.
Examples:
Example 1: Generate values from a laplacian distribution with mean 1
and standard deviation 2.
r = 1 + 2.*randl(100,1);
Example 2: Generate values from a bivariate laplacian distribution with
specified mean vector and covariance matrix.
mu = [1 2];
Sigma = [1 .5; .5 2]; R = chol(Sigma);
z = repmat(mu,100,1) + randl(100,2)*R;
Cita come
Naresh Vankayalapati (2026). Laplacian Noise (https://it.mathworks.com/matlabcentral/fileexchange/37391-laplacian-noise), MATLAB Central File Exchange. Recuperato .
Compatibilità della release di MATLAB
Compatibilità della piattaforma
Windows macOS LinuxCategorie
Tag
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!Scopri Live Editor
Crea script con codice, output e testo formattato in un unico documento eseguibile.
| Versione | Pubblicato | Note della release | |
|---|---|---|---|
| 1.0.0.0 |
