eosim::statics::TimeSeries EoSimulator Programmer's Manual
NAME
TimeSeries: Time Series Histogram
SYNOPSIS
#include <eosim/statics/timeseries.hpp>
namespace eosim {
namespace statics {
class TimeSeries: public Histogram {
public:
TimeSeries(double lower_, double upper_, double width_, std::string name_);
void log(double x_, double y_);
};
}
}
DESCRIPTION
This kind of histogram shows the trends in response variables over time.
CLASS OPERATIONS
TimeSeries(double lower_, double upper_, double width_, std::string name_):
The constructor of TimeSeries. To create a TimeSeries histogram the programmer have to specify the relevant interval of values [lower_, upper_]. width_ indicates the length of the subintervals in which [lower_, upper_] is divided (lower_ to upper_ by width_). If lower_ is greater or equal than upper_ or width_ is negative, the simulation aborts immediately displaying an error message.
void log(double x_, double y_):
This operations register x_ and y_ in the histogram. If the histogram hasn’t been registered to a model, the simulation aborts immediately displaying an error message.
SEE ALSO