全球FlexSim系统仿真中文论坛

标题: 离散的经验分布dempirical的模型 [打印本页]

作者: hans_tigger    时间: 2015-8-29 17:52
标题: 离散的经验分布dempirical的模型
求离散的经验分布dempirical的模型
作者: FFFrenk    时间: 2015-8-29 20:15
Returns a random sample from a discrete empirical distribution
+ E* c. k/ t  q% e
" Y8 @$ x4 f2 r3 J& o6 rParameters
2 I- _6 W6 |& ?, o(str/node/num table[, num stream]): e9 e+ R) ^% X3 ~
* a' Y9 \# U2 }
Description
/ H. s$ r. q- mA discrete empirical distribution., V0 [1 A& K# }8 c
) C/ y' `# b- e  \; {: C- y
The table referenced must contain a list of values and probability percentages associated with each of the values. Probability percentages must be entered in column 1 starting with row 1 of the table, and their associated values are entered in column 2. The table may have as many rows as needed to define as many values as desired. The percents are entered as numbers between 0 and 100, and should add up to a total of 100 percent; otherwise any values defined after a cumulative percentage of 100 is reached will never be returned.; t* [" i  E; c7 x; d$ S  }  a
, G  u" @/ O5 \9 _2 E# o
A detailed description of the three empirical distributions used in FlexSim and their differences is included with the cempirical() command.
7 Q! n$ l/ Z) V2 w2 wExample- K! E4 L/ {# k0 t7 X
int ptype = dempirical("prodtypes", 5); ) w/ v5 w* f$ |1 }

9 M& Z6 b$ c) a, r1 ~Assigns a value to the ptype variable using a discrete empirical distribution defined in a global table named "prodtypes" using random number stream 5. 8 w5 @* y; @/ C% P, H3 o* ?
+ [. m) `8 M! S
dempirical(label(current, "route"), 5);
' o' ]$ x: [+ c& X5 x- c
5 E7 `# ?8 {  H- oReturns a random variate from a discrete empirical distribution defined in a node table defined on the label named "route" of the current object, and using random number stream 5.
8 I; M2 `7 z9 f% V$ r2 q2 ^
' D0 Q% `0 e7 M" O谷歌翻译地址:http://translate.google.cn/




欢迎光临 全球FlexSim系统仿真中文论坛 (http://www.flexsimasia.com/) Powered by Discuz! X3.3