This is a submodel that calculates statistics describing the distribution of values of a single variable stored in an array. TestDescriptiveStats.sml includes the DescriptiveStats submodel that can be used in your own models by using plug and play. It could also be extended to calculate further statistics.
The following statistics are calculated:
Two test data sets are provided :
File |
Mean |
Standard deviation |
params11.spf |
1.0 |
1.0 |
params12.spf |
1.0 |
10.0 |
These test data are from reference data sets produced by the EUROMETROS (a European Collaboration in Measurement Standards project) for evaluating the numerical accuracy of the results produced by scientific software.
These data are not time series and so there is no need to run this model, since the calculations are done instantaneously. Running for a longer period will cause exactly the same calculations to be repeated each time step. Of course, if the input data were varying, as they would be in your own model, then the descriptive statistics will change each time step to reflect the changing data.
Example to calculate the statistics for the data in params11.spf:
Download the model file and include it in your own models using Simile’s plug-and-play features.
Files : | DescriptiveStatistics.zip |