![]() |
|
PhoenixSwarm
3.5.0
Library to ease communication between daemons
|
Accumulator of event occurence to build swarm statistics over a time period. More...
#include <Representation.h>
Public Member Functions | |
| float & | getHistLowerBound () |
| Gets the histLowerBound of the StatAccumulator. | |
| float | getHistLowerBound () const |
| Gets the histLowerBound of the StatAccumulator. | |
| float & | getHistUpperBound () |
| Gets the histUpperBound of the StatAccumulator. | |
| float | getHistUpperBound () const |
| Gets the histUpperBound of the StatAccumulator. | |
| float & | getMax () |
| Gets the max of the StatAccumulator. | |
| float | getMax () const |
| Gets the max of the StatAccumulator. | |
| float & | getMin () |
| Gets the min of the StatAccumulator. | |
| float | getMin () const |
| Gets the min of the StatAccumulator. | |
| size_t & | getNbEvent () |
| Gets the nbEvent of the StatAccumulator. | |
| size_t | getNbEvent () const |
| Gets the nbEvent of the StatAccumulator. | |
| size_t & | getNbEventAboveUpperBound () |
| Gets the nbEventAboveUpperBound of the StatAccumulator. | |
| size_t | getNbEventAboveUpperBound () const |
| Gets the nbEventAboveUpperBound of the StatAccumulator. | |
| size_t & | getNbEventBelowLowerBound () |
| Gets the nbEventBelowLowerBound of the StatAccumulator. | |
| size_t | getNbEventBelowLowerBound () const |
| Gets the nbEventBelowLowerBound of the StatAccumulator. | |
| float & | getSum () |
| Gets the sum of the StatAccumulator. | |
| float | getSum () const |
| Gets the sum of the StatAccumulator. | |
| std::vector< size_t > & | getVecHistogram () |
| Gets the vecHistogram of the StatAccumulator. | |
| const std::vector< size_t > & | getVecHistogram () const |
| Gets the vecHistogram of the StatAccumulator. | |
| StatAccumulator & | operator= (const StatAccumulator &other) |
| Operator = of class StatAccumulator. | |
| template<typename Stream, DataStreamMode::DataStreamMode Mode> | |
| bool | readWriteStream (Stream &ds) |
| Load the current StatAccumulator with a stream. | |
| void | setHistLowerBound (float histLowerBound) |
| Sets the histLowerBound of the StatAccumulator. | |
| void | setHistUpperBound (float histUpperBound) |
| Sets the histUpperBound of the StatAccumulator. | |
| void | setMax (float max) |
| Sets the max of the StatAccumulator. | |
| void | setMin (float min) |
| Sets the min of the StatAccumulator. | |
| void | setNbEvent (size_t nbEvent) |
| Sets the nbEvent of the StatAccumulator. | |
| void | setNbEventAboveUpperBound (size_t nbEventAboveUpperBound) |
| Sets the nbEventAboveUpperBound of the StatAccumulator. | |
| void | setNbEventBelowLowerBound (size_t nbEventBelowLowerBound) |
| Sets the nbEventBelowLowerBound of the StatAccumulator. | |
| void | setSum (float sum) |
| Sets the sum of the StatAccumulator. | |
| void | setVecHistogram (const std::vector< size_t > &vecHistogram) |
| Sets the vecHistogram of the StatAccumulator. | |
| StatAccumulator () | |
| Constructor of class StatAccumulator. | |
| StatAccumulator (const StatAccumulator &other) | |
| Copy Constructor of class StatAccumulator. | |
| virtual | ~StatAccumulator () |
| Destructor of class StatAccumulator. | |
Protected Member Functions | |
| void | copyStatAccumulator (const StatAccumulator &other) |
| Copy Function of class StatAccumulator. | |
Private Member Functions | |
| void | initialisationStatAccumulator () |
| Initialisation Function of class StatAccumulator. | |
Private Attributes | |
| float | p_histLowerBound |
| Minimum value in the histogram. | |
| float | p_histUpperBound |
| Maximum value in the histogram. | |
| float | p_max |
| Maximum value of the stat. | |
| float | p_min |
| Minimum value of the stat. | |
| size_t | p_nbEvent |
| Number of events used to make this statistic. | |
| size_t | p_nbEventAboveUpperBound |
| Number of events above the upper boundary. | |
| size_t | p_nbEventBelowLowerBound |
| Number of events below the lower bound. | |
| float | p_sum |
| Sum of all values. | |
| std::vector< size_t > | p_vecHistogram |
| Histogram to acccumulate event counts per quantile. | |
Accumulator of event occurence to build swarm statistics over a time period.
Definition at line 434 of file Representation.h.
| StatAccumulator::StatAccumulator | ( | ) |
Constructor of class StatAccumulator.
Definition at line 979 of file Representation.cpp.
References initialisationStatAccumulator().
Referenced by copyStatAccumulator(), operator=(), and StatAccumulator().
Here is the call graph for this function:
Here is the caller graph for this function:
|
virtual |
Destructor of class StatAccumulator.
Definition at line 984 of file Representation.cpp.
| StatAccumulator::StatAccumulator | ( | const StatAccumulator & | other | ) |
Copy Constructor of class StatAccumulator.
| other | : StatAccumulator we want ot copy |
Definition at line 991 of file Representation.cpp.
References copyStatAccumulator(), and StatAccumulator().
Here is the call graph for this function:
|
protected |
Copy Function of class StatAccumulator.
| other | : StatAccumulator we want ot copy |
Definition at line 1196 of file Representation.cpp.
References p_histLowerBound, p_histUpperBound, p_max, p_min, p_nbEvent, p_nbEventAboveUpperBound, p_nbEventBelowLowerBound, p_sum, p_vecHistogram, and StatAccumulator().
Referenced by operator=(), and StatAccumulator().
Here is the call graph for this function:
Here is the caller graph for this function:| float & StatAccumulator::getHistLowerBound | ( | ) |
Gets the histLowerBound of the StatAccumulator.
Definition at line 1147 of file Representation.cpp.
References p_histLowerBound.
| float StatAccumulator::getHistLowerBound | ( | ) | const |
Gets the histLowerBound of the StatAccumulator.
Definition at line 1140 of file Representation.cpp.
References p_histLowerBound.
Referenced by CheckStream< StatAccumulator >::check_stream(), and BaseDaemon::updateStatAccumulator().
Here is the caller graph for this function:| float & StatAccumulator::getHistUpperBound | ( | ) |
Gets the histUpperBound of the StatAccumulator.
Definition at line 1161 of file Representation.cpp.
References p_histUpperBound.
| float StatAccumulator::getHistUpperBound | ( | ) | const |
Gets the histUpperBound of the StatAccumulator.
Definition at line 1154 of file Representation.cpp.
References p_histUpperBound.
Referenced by CheckStream< StatAccumulator >::check_stream(), and BaseDaemon::updateStatAccumulator().
Here is the caller graph for this function:| float & StatAccumulator::getMax | ( | ) |
Gets the max of the StatAccumulator.
Definition at line 1119 of file Representation.cpp.
References p_max.
| float StatAccumulator::getMax | ( | ) | const |
Gets the max of the StatAccumulator.
Definition at line 1112 of file Representation.cpp.
References p_max.
Referenced by CheckStream< StatAccumulator >::check_stream(), BaseDaemon::fillVecStat(), and BaseDaemon::updateStatAccumulator().
Here is the caller graph for this function:| float & StatAccumulator::getMin | ( | ) |
Gets the min of the StatAccumulator.
Definition at line 1105 of file Representation.cpp.
References p_min.
| float StatAccumulator::getMin | ( | ) | const |
Gets the min of the StatAccumulator.
Definition at line 1098 of file Representation.cpp.
References p_min.
Referenced by CheckStream< StatAccumulator >::check_stream(), BaseDaemon::fillVecStat(), and BaseDaemon::updateStatAccumulator().
Here is the caller graph for this function:| size_t & StatAccumulator::getNbEvent | ( | ) |
Gets the nbEvent of the StatAccumulator.
Definition at line 1077 of file Representation.cpp.
References p_nbEvent.
| size_t StatAccumulator::getNbEvent | ( | ) | const |
Gets the nbEvent of the StatAccumulator.
Definition at line 1070 of file Representation.cpp.
References p_nbEvent.
Referenced by CheckStream< StatAccumulator >::check_stream(), BaseDaemon::fillVecStat(), and BaseDaemon::updateStatAccumulator().
Here is the caller graph for this function:| size_t & StatAccumulator::getNbEventAboveUpperBound | ( | ) |
Gets the nbEventAboveUpperBound of the StatAccumulator.
Definition at line 1189 of file Representation.cpp.
References p_nbEventAboveUpperBound.
| size_t StatAccumulator::getNbEventAboveUpperBound | ( | ) | const |
Gets the nbEventAboveUpperBound of the StatAccumulator.
Definition at line 1182 of file Representation.cpp.
References p_nbEventAboveUpperBound.
Referenced by CheckStream< StatAccumulator >::check_stream(), BaseDaemon::fillVecStat(), and BaseDaemon::updateStatAccumulator().
Here is the caller graph for this function:| size_t & StatAccumulator::getNbEventBelowLowerBound | ( | ) |
Gets the nbEventBelowLowerBound of the StatAccumulator.
Definition at line 1175 of file Representation.cpp.
References p_nbEventBelowLowerBound.
| size_t StatAccumulator::getNbEventBelowLowerBound | ( | ) | const |
Gets the nbEventBelowLowerBound of the StatAccumulator.
Definition at line 1168 of file Representation.cpp.
References p_nbEventBelowLowerBound.
Referenced by CheckStream< StatAccumulator >::check_stream(), BaseDaemon::fillVecStat(), and BaseDaemon::updateStatAccumulator().
Here is the caller graph for this function:| float & StatAccumulator::getSum | ( | ) |
Gets the sum of the StatAccumulator.
Definition at line 1091 of file Representation.cpp.
References p_sum.
| float StatAccumulator::getSum | ( | ) | const |
Gets the sum of the StatAccumulator.
Definition at line 1084 of file Representation.cpp.
References p_sum.
Referenced by CheckStream< StatAccumulator >::check_stream(), BaseDaemon::fillVecStat(), and BaseDaemon::updateStatAccumulator().
Here is the caller graph for this function:| std::vector< size_t > & StatAccumulator::getVecHistogram | ( | ) |
Gets the vecHistogram of the StatAccumulator.
Definition at line 1133 of file Representation.cpp.
References p_vecHistogram.
| const std::vector< size_t > & StatAccumulator::getVecHistogram | ( | ) | const |
Gets the vecHistogram of the StatAccumulator.
Definition at line 1126 of file Representation.cpp.
References p_vecHistogram.
Referenced by CheckStream< StatAccumulator >::check_stream(), BaseDaemon::fillVecStat(), and BaseDaemon::updateStatAccumulator().
Here is the caller graph for this function:
|
private |
Initialisation Function of class StatAccumulator.
Definition at line 1209 of file Representation.cpp.
References p_histLowerBound, p_histUpperBound, p_max, p_min, p_nbEvent, p_nbEventAboveUpperBound, p_nbEventBelowLowerBound, and p_sum.
Referenced by StatAccumulator().
Here is the caller graph for this function:| StatAccumulator & StatAccumulator::operator= | ( | const StatAccumulator & | other | ) |
Operator = of class StatAccumulator.
| other | : StatAccumulator we want ot copy |
Definition at line 999 of file Representation.cpp.
References copyStatAccumulator(), and StatAccumulator().
Here is the call graph for this function:
|
inline |
Load the current StatAccumulator with a stream.
| [out] | ds | : stream to be used |
Definition at line 473 of file Representation.h.
References p_histLowerBound, p_histUpperBound, p_max, p_min, p_nbEvent, p_nbEventAboveUpperBound, p_nbEventBelowLowerBound, p_sum, and p_vecHistogram.
Referenced by DataStream< Stream, Mode, StatAccumulator >::data_stream().
Here is the caller graph for this function:| void StatAccumulator::setHistLowerBound | ( | float | histLowerBound | ) |
Sets the histLowerBound of the StatAccumulator.
| histLowerBound | : histLowerBound of the StatAccumulator |
Definition at line 1042 of file Representation.cpp.
References p_histLowerBound.
Referenced by BaseDaemon::createNewStat().
Here is the caller graph for this function:| void StatAccumulator::setHistUpperBound | ( | float | histUpperBound | ) |
Sets the histUpperBound of the StatAccumulator.
| histUpperBound | : histUpperBound of the StatAccumulator |
Definition at line 1049 of file Representation.cpp.
References p_histUpperBound.
Referenced by BaseDaemon::createNewStat().
Here is the caller graph for this function:| void StatAccumulator::setMax | ( | float | max | ) |
Sets the max of the StatAccumulator.
| max | : max of the StatAccumulator |
Definition at line 1028 of file Representation.cpp.
References p_max.
Referenced by BaseDaemon::createNewStat(), and BaseDaemon::updateStatAccumulator().
Here is the caller graph for this function:| void StatAccumulator::setMin | ( | float | min | ) |
Sets the min of the StatAccumulator.
| min | : min of the StatAccumulator |
Definition at line 1021 of file Representation.cpp.
References p_min.
Referenced by BaseDaemon::createNewStat(), and BaseDaemon::updateStatAccumulator().
Here is the caller graph for this function:| void StatAccumulator::setNbEvent | ( | size_t | nbEvent | ) |
Sets the nbEvent of the StatAccumulator.
| nbEvent | : nbEvent of the StatAccumulator |
Definition at line 1007 of file Representation.cpp.
References p_nbEvent.
Referenced by BaseDaemon::createNewStat(), and BaseDaemon::updateStatAccumulator().
Here is the caller graph for this function:| void StatAccumulator::setNbEventAboveUpperBound | ( | size_t | nbEventAboveUpperBound | ) |
Sets the nbEventAboveUpperBound of the StatAccumulator.
| nbEventAboveUpperBound | : nbEventAboveUpperBound of the StatAccumulator |
Definition at line 1063 of file Representation.cpp.
References p_nbEventAboveUpperBound.
Referenced by BaseDaemon::createNewStat(), and BaseDaemon::updateStatAccumulator().
Here is the caller graph for this function:| void StatAccumulator::setNbEventBelowLowerBound | ( | size_t | nbEventBelowLowerBound | ) |
Sets the nbEventBelowLowerBound of the StatAccumulator.
| nbEventBelowLowerBound | : nbEventBelowLowerBound of the StatAccumulator |
Definition at line 1056 of file Representation.cpp.
References p_nbEventBelowLowerBound.
Referenced by BaseDaemon::createNewStat(), and BaseDaemon::updateStatAccumulator().
Here is the caller graph for this function:| void StatAccumulator::setSum | ( | float | sum | ) |
Sets the sum of the StatAccumulator.
| sum | : sum of the StatAccumulator |
Definition at line 1014 of file Representation.cpp.
References p_sum.
Referenced by BaseDaemon::createNewStat(), and BaseDaemon::updateStatAccumulator().
Here is the caller graph for this function:| void StatAccumulator::setVecHistogram | ( | const std::vector< size_t > & | vecHistogram | ) |
Sets the vecHistogram of the StatAccumulator.
| vecHistogram | : vecHistogram of the StatAccumulator |
Definition at line 1035 of file Representation.cpp.
References p_vecHistogram.
Referenced by BaseDaemon::createNewStat().
Here is the caller graph for this function:
|
private |
Minimum value in the histogram.
Definition at line 502 of file Representation.h.
Referenced by copyStatAccumulator(), getHistLowerBound(), getHistLowerBound(), initialisationStatAccumulator(), readWriteStream(), and setHistLowerBound().
|
private |
Maximum value in the histogram.
Definition at line 504 of file Representation.h.
Referenced by copyStatAccumulator(), getHistUpperBound(), getHistUpperBound(), initialisationStatAccumulator(), readWriteStream(), and setHistUpperBound().
|
private |
Maximum value of the stat.
Definition at line 498 of file Representation.h.
Referenced by copyStatAccumulator(), getMax(), getMax(), initialisationStatAccumulator(), readWriteStream(), and setMax().
|
private |
Minimum value of the stat.
Definition at line 496 of file Representation.h.
Referenced by copyStatAccumulator(), getMin(), getMin(), initialisationStatAccumulator(), readWriteStream(), and setMin().
|
private |
Number of events used to make this statistic.
Definition at line 492 of file Representation.h.
Referenced by copyStatAccumulator(), getNbEvent(), getNbEvent(), initialisationStatAccumulator(), readWriteStream(), and setNbEvent().
|
private |
Number of events above the upper boundary.
Definition at line 508 of file Representation.h.
Referenced by copyStatAccumulator(), getNbEventAboveUpperBound(), getNbEventAboveUpperBound(), initialisationStatAccumulator(), readWriteStream(), and setNbEventAboveUpperBound().
|
private |
Number of events below the lower bound.
Definition at line 506 of file Representation.h.
Referenced by copyStatAccumulator(), getNbEventBelowLowerBound(), getNbEventBelowLowerBound(), initialisationStatAccumulator(), readWriteStream(), and setNbEventBelowLowerBound().
|
private |
Sum of all values.
Definition at line 494 of file Representation.h.
Referenced by copyStatAccumulator(), getSum(), getSum(), initialisationStatAccumulator(), readWriteStream(), and setSum().
|
private |
Histogram to acccumulate event counts per quantile.
Definition at line 500 of file Representation.h.
Referenced by copyStatAccumulator(), getVecHistogram(), getVecHistogram(), readWriteStream(), and setVecHistogram().