heal-research / SimSharp

Sim# is a .NET port of SimPy, process-based discrete event simulation framework
MIT License
126 stars 30 forks source link

Improved statistics and result visualization #14

Closed abeham closed 5 years ago

abeham commented 5 years ago

Currently, Sim# offers a ContinuousStatistics class that allows computing an average over time. It would be good to offer just basic DiscreteStastistics as well as to be able to reset these.

In addition, it should be possible to log statistics to a file which can be visualized later. This is useful for not only considering the mean, but also the whole history (for instance to visualize convergence/divergence of some measure of the simulation).

abeham commented 5 years ago

Regarding visualization, an option would be to output data to a csv and use a web-based visualization framework to turn that data into charts. I have looked a little at Vega-Lite which seems to be very nice for creating charts and plots with little effort.

This does not even require support at the core level, but the samples could be enhanced to show how this is possible.