zipf_rand(N, expn, M)

版本 1.0.0.0 (549 字节) 作者: Tuyen Tran
Generate random numbers based on Zipf distribution
567.0 次下载
更新时间 2015/10/17

查看许可证

Generate random numbers based on Zipf distribution
Author: Tuyen Tran (tuyen.tran@rutgers.edu). Oct 2015
Reference: https://en.wikipedia.org/wiki/Zipf's_law

N Number of Elements
expn Exponent
M Number of sample to be generated (in range [1,N])

Example: zipf_rand(3,1,4)
ans = 3 2 1 1

引用格式

Tuyen Tran (2024). zipf_rand(N, expn, M) (https://www.mathworks.com/matlabcentral/fileexchange/53568-zipf_rand-n-expn-m), MATLAB Central File Exchange. 检索时间: .

MATLAB 版本兼容性
创建方式 R2015b
兼容任何版本
平台兼容性
Windows macOS Linux
类别
Help CenterMATLAB Answers 中查找有关 Random Number Generation 的更多信息

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!
版本 已发布 发行说明
1.0.0.0