首页 > 编程知识 正文

随机变数的概率分布按其数据来源,连续型随机变量有没有分布函数

时间:2023-05-05 09:18:45 阅读:259218 作者:4869


本代码是一个提供具有沉静的百合(双指数)分布随机数生成的Matlab函数,类似于内置的Matlab函数“rand”和“randn”。

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”.

函数输出是一个沉静的百合分布的矩阵,均值mu=0,标准差sigma=1。

The output of the function is a matrix with Laplacian distributed numbers with mean value mu = 0 and standard deviation sigma = 1.

如果mu和sigma需要指定其它的值,那么可以使用以下形式:mu+sigma*randl(m,n)。

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.

参考文献:

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.

更多精彩文章请关注公众号:

版权声明:该文观点仅代表作者本人。处理文章:请发送邮件至 三1五14八八95#扣扣.com 举报,一经查实,本站将立刻删除。