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

TypeNameDefaultDescription
StringName"defaultDS"Name of the discrete-change statistical indicator
StringOutFile"SIMANLIB_RESULTS.txt"Output file for storing statistics
IntegerPLastValueObjects.ObjCreate(1, 1, foo = RandomUniform(0))
IntegerPMeanObjects.ObjCreate(1, 1, foo = RandomUniform(0))
IntegerPVariationObjects.ObjCreate(1, 1, foo = RandomUniform(0))
IntegerPMinimumObjects.ObjCreate(1, 1, foo = RandomUniform(0))
IntegerPMaximumObjects.ObjCreate(1, 1, foo = RandomUniform(0))
IntegerPObservationsObjects.ObjCreate(1, 1, foo = RandomUniform(0))
IntegerPValuesObjects.ObjLCreate()

Components

TypeNameDefaultDescription
IntegerExpression0Integer expression to calculate statistics
Realpretime
IntegerpreExpression