楼主: 梦蓝
3799 4

请问 如何生成随机数 [推广有奖]

  • 0关注
  • 0粉丝

本科生

4%

还不是VIP/贵宾

-

威望
0
论坛币
177 个
通用积分
0
学术水平
0 点
热心指数
0 点
信用等级
0 点
经验
469 点
帖子
75
精华
0
在线时间
0 小时
注册时间
2007-9-4
最后登录
2008-5-7

楼主
梦蓝 发表于 2008-1-16 16:43:00 |AI写论文

+2 论坛币
k人 参与回答

经管之家送您一份

应届毕业生专属福利!

求职就业群
赵安豆老师微信:zhaoandou666

经管之家联合CDA

送您一个全额奖学金名额~ !

感谢您参与论坛问题回答

经管之家送您两个论坛币!

+2 论坛币

请问如何生成weibull 的随机数呢?

谢谢了?

二维码

扫码加我 拉你入群

请注明:姓名-公司-职位

以便审核进群资格,未注明则拒绝

关键词:生成随机数 随机数 Weibull Bull wei 随机数

沙发
aris_zzy 发表于 2008-1-17 00:15:00

可以 参考matlab的统计工具箱 说明文档

http://www.ariszheng.com

藤椅
torontodownload 发表于 2008-1-24 12:44:00
最简单的用inverse方法:
X=\lambda (-\ln(U))^{1/k}\,
U is uniform in [0,1]
以下是引用aris_zzy在2008-1-17 0:15:00的发言:

可以 参考matlab的统计工具箱 说明文档

板凳
aris_zzy 发表于 2008-1-24 16:37:00

      Syntax
   Y = random(name,A)Y = random(name,A,B)Y = random(name,A,B,C)Y = random(...,m,n,...)Y = random(...,[m,n,...])DescriptionY = random(name,A) returns random numbers Y from
the one-parameter family of distributions specified by name.
Parameter values for the distribution are given in A. Y is the same size as A.Y = random(name,A,B) returns random numbers Y from
a two-parameter family of distributions. Parameter values for the distribution
are given in A and B. If A and B are arrays, they must
be the same size. If either A or B are
scalars, they are expanded to constant matrices of the same size.Y = random(name,A,B,C) returns random numbers Y from
a three-parameter family of distributions. Parameter values for the distribution
are given in A, B, and C.If A, B, and C are
arrays, they must be the same size. If any of A, B,
or C are scalars, they are expanded to constant matrices
of the same size.Y = random(...,m,n,...) or Y = random(...,[m,n,...]) returns
an m-by-n-by... matrix of random numbers.If any of A, B, or C are
arrays, then the specified dimensions must match the common dimensions of A, B,
and C after any necessary scalar expansion.Acceptable strings for name are:'beta' (Beta distribution)'bino' (Binomial distribution)'chi2' (Chi-square distribution)'exp' (Exponential distribution)'ev' (Extreme value distribution)'f' (F distribution)'gam' (Gamma distribution)'gev' (Generalized extreme value distribution)'gp' (Generalized Pareto distribution)'geo' (Geometric distribution)'hyge' (Hypergeometric distribution)'logn' (Lognormal distribution)'nbin' (Negative binomial distribution)'ncf' (Noncentral F distribution)'nct' (Noncentral tdistribution)'ncx2' (Noncentral chi-square distribution)'norm' (Normal distribution)'poiss' (Poisson distribution)'rayl' (Rayleigh distribution)'t' (t distribution)'unif' (Uniform distribution)'unid' (Discrete uniform distribution)'wbl' (Weibull distribution)
http://www.ariszheng.com

报纸
matlab-007 发表于 2015-1-25 20:10:42
SAS provides such a random function.

Weibull Distribution
x = RAND('WEIBULL',a,b)
Arguments
x
is an observation from the distribution with the following probability density function:

Range:x ≥ 0
a
is a numeric shape parameter.
Range:a > 0
b
is a numeric scale parameter.
Range:b > 0

您需要登录后才可以回帖 登录 | 我要注册

本版微信群
加好友,备注cda
拉您进交流群
GMT+8, 2025-12-26 20:27