全部版块 我的主页
论坛 数据科学与人工智能 数据分析与数据科学 MATLAB等数学软件专版
3757 4
2008-01-16

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

谢谢了?

二维码

扫码加我 拉你入群

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

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

全部回复
2008-1-17 00:15:00

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

二维码

扫码加我 拉你入群

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

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

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的统计工具箱 说明文档

二维码

扫码加我 拉你入群

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

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

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)
二维码

扫码加我 拉你入群

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

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

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
二维码

扫码加我 拉你入群

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

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

相关推荐
栏目导航
热门文章
推荐文章

说点什么

分享

扫码加好友,拉您进群
各岗位、行业、专业交流群