KendrickOrg/kendrick

KESimulation needs some operators on TimeSeries to manipulate the data for plotting

btmanh opened this issue · 1 comments

The DSL needs some wrap-in functions to manipulating the simulation output (TimeSeries) before plotting.
For example: sum, log, sqrt, etc.
An example which can be executed with the old version:

Visualization MosquitoViz diagram
	for: MosquitoSim;
	data: $(I sqrt);
	xLabel: 'Time (days)';
	yLabel: 'sqrt(I by species)'.

the data will be collected from the output of simulation for all I by species, the sqrt will be applied on each timeseries before plotting all I by species (so if we have 3 species, we will have 3 curves).

I think we need some basic operators provided for the simulation results so that the DSL can use them.

I see that the two affected classes of the DSL-Internal tag are simulation and visualization.

More precisely,

  • In the simulation class, theexportTimeSeriesOutputsAt: anIdentifier method allows us to export timeseries resulting from the simulation.
  • In the visualization method, the data: anArray method lists a number of functions defined in a collection.

I may give the impression of creating a repetition.
Is the idea to implement the functions sqrt, log, etc so that we can manipulate them with the timeseries produced during the simulations.