94 static double percentile(
const std::vector<double>& sorted,
double p);
100 static std::map<const MSEdge*, std::vector<std::pair<double, double> > >
myEdgeSamples;
A single mesoscopic segment (cell)
Stores edges and lanes, performs moving of vehicle.
A road/street connecting two junctions.
Representation of a lane in the micro simulation.
Export the queueing length in front of a junction (very experimental!)
static SUMOTime myIntervalStart
The begin of the current aggregation interval.
static void writeMesoQueue(OutputDevice *of, const MSEdge &edge, const MESegment &segment, int qIdx, double segmentOffset, double threshold, const std::function< void()> &ensureOpen)
Checks a single segment queue (meso)
static double percentile(const std::vector< double > &sorted, double p)
Returns the given percentile (with linear interpolation) of a sorted sample vector.
static void finish(OutputDevice &of, SUMOTime timestep)
Writes the last (possibly incomplete) aggregation interval and clears the collected samples.
static void writeLane(OutputDevice *of, const MSLane &lane, double threshold, const std::function< void()> &ensureOpen)
Checks a single lane for a vehicle queue (micro)
static void writeInterval(OutputDevice &of, SUMOTime begin, SUMOTime end)
Writes aggregated per-edge queue length statistics for the given interval.
static void write(OutputDevice &of, SUMOTime timestep)
Export the queueing length in front of a junction (very experimental!)
MSQueueExport(const MSQueueExport &)
Invalidated copy constructor.
static std::map< const MSEdge *, std::vector< std::pair< double, double > > > myEdgeSamples
Queue length samples (in vehicles, in meters) per edge, collected during the current aggregation inte...
static void writeEdge(OutputDevice *of, double threshold, const std::function< void()> &ensureOpen)
Iterates through the edges and their lanes (micro) or segment queues (meso). If of is nullptr,...
MSQueueExport & operator=(const MSQueueExport &)
Invalidated assignment operator.
Static storage of an output device and its base (abstract) implementation.