modelTally

Extends from ElementIcon (Icon for the elements).

Information

This element calculates a tally (time-dependent) statistical indicator. It includes the mean, minimum and maximum values, and the number of observations.

Each value calculated by the indicator is stored in an Object element. The values are updated by the Tally block, using the Object management functions.

At the end of the simulation, the results are written to the output file and the objects are deleted.

Two functions are used to compute the indicator:

  • TallyUpdate, updates the values of the indicator.
  • TallyVariation, returns the variation of the stored observations (not currently implemented).

Parameters

TypeNameDefaultDescription
StringName"defaultT"Name of the tally indicator
StringOutFile"SIMANLIB_RESULTS.txt"Output file for storing statistics
IntegerPLastValueObjects.ObjCreate(1, 1, foo = RandomUniform(0))
IntegerPMeanObjects.ObjCreate(1, 1, foo = RandomUniform(1))
IntegerPMinimumObjects.ObjCreate(1, 1, foo = RandomUniform(2))
IntegerPMaximumObjects.ObjCreate(1, 1, foo = RandomUniform(3))
IntegerPObservationsObjects.ObjCreate(1, 1, foo = RandomUniform(4))