全球FlexSim系统仿真中文论坛

搜索
查看: 3913|回复: 1
打印 上一主题 下一主题

离散的经验分布dempirical的模型

[复制链接]
跳转到指定楼层
1#
hans_tigger 发表于 2015-8-29 17:52:09 | 只看该作者 回帖奖励 |倒序浏览 |阅读模式
求离散的经验分布dempirical的模型
2#
FFFrenk 发表于 2015-8-29 20:15:15 | 只看该作者
Returns a random sample from a discrete empirical distribution& H( A1 W, V9 Z  L* \( }7 U
" X. d% J2 C# K1 H) r: Z, ]; u) P
Parameters
; }/ C/ s/ Y$ q) L# t(str/node/num table[, num stream])
8 H- P% s5 U" s( ]3 Y, h2 q
# I, X1 |2 o# Q8 J) e) j+ p7 jDescription; s% V0 O2 q4 }! p& }  M3 i% ~6 j
A discrete empirical distribution.
5 \- ~- q3 X% m4 F  ^( A5 ~
. L. C( F1 E1 QThe 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.
7 s3 B8 K7 P1 x! O" i' Y4 w8 m0 c) u$ p8 C8 L
A detailed description of the three empirical distributions used in FlexSim and their differences is included with the cempirical() command.8 e$ h$ i; y$ y; ~! d/ E$ n1 j$ C
Example0 T$ z& `* \9 `+ P. v: _' N
int ptype = dempirical("prodtypes", 5);
5 Y6 F; {+ M9 Y3 T) Y; B& U8 R5 t% e6 F( O6 a
Assigns a value to the ptype variable using a discrete empirical distribution defined in a global table named "prodtypes" using random number stream 5.
- O$ M' m, d! K  b- y9 ^. ]$ ?2 ^, W/ f3 b' A1 J2 H- z
dempirical(label(current, "route"), 5);
3 J2 g* y, O2 w) J8 z7 n. x, `6 G
Returns 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.
7 {# }" Q% b, v. b
! ~  u4 ~% |5 a0 Y/ T  N7 i% k谷歌翻译地址:http://translate.google.cn/
您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

QQ|小黑屋|手机版|Archiver|全球FlexSim系统仿真中文论坛 ( 京ICP备14043114号-2 )

GMT+8, 2025-7-1 05:32 , Processed in 0.065027 second(s), 13 queries .

Powered by Discuz! X3.3© 2001-2013 Comsenz Inc.

快速回复 返回顶部 返回列表