modelDStat
Discrete statistical indicator
Extends from ElementIcon (Icon for the elements).
Information
This element calculates a discrete 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 using the Object management functions, each time the expression changes its value.
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:
- DStatUpdate, updates the values of the indicator.
- DStatVariation, returns the variation of the stored observations (not currently implemented).
Parameters
| Type | Name | Default | Description |
|---|---|---|---|
| String | Name | "defaultDS" | Name of the discrete-change statistical 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(0)) | |
| Integer | PVariation | Objects.ObjCreate(1, 1, foo = RandomUniform(0)) | |
| Integer | PMinimum | Objects.ObjCreate(1, 1, foo = RandomUniform(0)) | |
| Integer | PMaximum | Objects.ObjCreate(1, 1, foo = RandomUniform(0)) | |
| Integer | PObservations | Objects.ObjCreate(1, 1, foo = RandomUniform(0)) | |
| Integer | PValues | Objects.ObjLCreate() |
Components
| Type | Name | Default | Description |
|---|---|---|---|
| Integer | Expression | 0 | Integer expression to calculate statistics |
| Real | pretime | ||
| Integer | preExpression |