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
| Type | Name | Default | Description |
|---|---|---|---|
| String | Name | "defaultT" | Name of the tally indicator |
| String | OutFile | "SIMANLIB_RESULTS.txt" | Output file for storing statistics |
| Integer | PLastValue | Objects.ObjCreate(1, 1, foo = RandomUniform(0)) | |
| Integer | PMean | Objects.ObjCreate(1, 1, foo = RandomUniform(1)) | |
| Integer | PMinimum | Objects.ObjCreate(1, 1, foo = RandomUniform(2)) | |
| Integer | PMaximum | Objects.ObjCreate(1, 1, foo = RandomUniform(3)) | |
| Integer | PObservations | Objects.ObjCreate(1, 1, foo = RandomUniform(4)) |