« Simscript III/Dictionnaire des instructions/ACCUMULATE/TALLY » : différence entre les versions

Contenu supprimé Contenu ajouté
Aucun résumé des modifications
DannyS712 (discussion | contributions)
m <source> -> <syntaxhighlight> (phab:T237267)
Ligne 155 :
 
Soit Occupé une variable globale qui manque l<nowiki>’</nowiki>occupation d<nowiki>’</nowiki>un serveur (Occupé =&nbsp;0 quand il est libre et Occupé =&nbsp;1 quand il est occupé). Alors:
<sourcesyntaxhighlight lang="fortran">
accumulate R0 as the mean of Occupé
</syntaxhighlight>
</source>
donnera le taux d<nowiki>’</nowiki>occupation du serveur durant la simulation.
 
Ligne 163 :
Si Bac est un ensemble et si on place dans le <font color="#0000FF">preamble&nbsp;</font>:
 
<sourcesyntaxhighlight lang="fortran">
accumulate L_Bac as the mean,
p (0 to 100 by 1) as the histogram of N.Bac
</syntaxhighlight>
</source>
on aura en fin de simulation L_Bac&nbsp;&nbsp;=&nbsp;&nbsp;longueur moyenne de la file Bac et p(k) / '''time.v'''&nbsp;&nbsp;=&nbsp;&nbsp;probabilité d<nowiki>’</nowiki>avoir k 1 clients dans la file Bac pour k&nbsp;&nbsp;=&nbsp;&nbsp;1,...,101.
 
Ligne 177 :
 
 
<sourcesyntaxhighlight lang="fortran">
tally Nw = number,
Ew = mean,
Ligne 183 :
Hw (0 to 20 by 0.1 = histogram of w
 
</syntaxhighlight>
</source>
 
{|border="0" cellspacing="2" width="65%"