This element computes a discrete-time statistical indicator for a given discrete variable or expression. The statistical indicator includes the mean, the maximum value, the minimum value and the number of observations.
Each time the value of the expression changes, the statistics are updated.
Results are written to the OutFile (by default SIMANLIB_RESULTS.txt), at the end of the simulation. The parameter Name will be used to identify the entry in the results file, so it is very useful to set a significant name for this element.
model DStat = SRC.Elements.DStat;