![]() |
|
PhoenixSwarm
5.1.1
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 435 of file Representation.h.
| StatAccumulator::StatAccumulator | ( | ) |
Constructor of class StatAccumulator.
Definition at line 981 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 986 of file Representation.cpp.
| StatAccumulator::StatAccumulator | ( | const StatAccumulator & | other | ) |
Copy Constructor of class StatAccumulator.
| other | : StatAccumulator we want ot copy |
Definition at line 993 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 1198 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 1149 of file Representation.cpp.
References p_histLowerBound.
| float StatAccumulator::getHistLowerBound | ( | ) | const |
Gets the histLowerBound of the StatAccumulator.
Definition at line 1142 of file Representation.cpp.
References p_histLowerBound.
Referenced by CheckStream< Swarm::StatAccumulator >::check_stream(), and Swarm::BaseDaemon::updateStatAccumulator().
Here is the caller graph for this function:| float & StatAccumulator::getHistUpperBound | ( | ) |
Gets the histUpperBound of the StatAccumulator.
Definition at line 1163 of file Representation.cpp.
References p_histUpperBound.
| float StatAccumulator::getHistUpperBound | ( | ) | const |
Gets the histUpperBound of the StatAccumulator.
Definition at line 1156 of file Representation.cpp.
References p_histUpperBound.
Referenced by CheckStream< Swarm::StatAccumulator >::check_stream(), and Swarm::BaseDaemon::updateStatAccumulator().
Here is the caller graph for this function:| float & StatAccumulator::getMax | ( | ) |
Gets the max of the StatAccumulator.
Definition at line 1121 of file Representation.cpp.
References p_max.
| float StatAccumulator::getMax | ( | ) | const |
Gets the max of the StatAccumulator.
Definition at line 1114 of file Representation.cpp.
References p_max.
Referenced by CheckStream< Swarm::StatAccumulator >::check_stream(), Swarm::BaseDaemon::fillVecStat(), testUpdateStatAccumulator(), and Swarm::BaseDaemon::updateStatAccumulator().
Here is the caller graph for this function:| float & StatAccumulator::getMin | ( | ) |
Gets the min of the StatAccumulator.
Definition at line 1107 of file Representation.cpp.
References p_min.
| float StatAccumulator::getMin | ( | ) | const |
Gets the min of the StatAccumulator.
Definition at line 1100 of file Representation.cpp.
References p_min.
Referenced by CheckStream< Swarm::StatAccumulator >::check_stream(), Swarm::BaseDaemon::fillVecStat(), testUpdateStatAccumulator(), and Swarm::BaseDaemon::updateStatAccumulator().
Here is the caller graph for this function:| size_t & StatAccumulator::getNbEvent | ( | ) |
Gets the nbEvent of the StatAccumulator.
Definition at line 1079 of file Representation.cpp.
References p_nbEvent.
| size_t StatAccumulator::getNbEvent | ( | ) | const |
Gets the nbEvent of the StatAccumulator.
Definition at line 1072 of file Representation.cpp.
References p_nbEvent.
Referenced by CheckStream< Swarm::StatAccumulator >::check_stream(), Swarm::BaseDaemon::fillVecStat(), testUpdateStatAccumulator(), and Swarm::BaseDaemon::updateStatAccumulator().
Here is the caller graph for this function:| size_t & StatAccumulator::getNbEventAboveUpperBound | ( | ) |
Gets the nbEventAboveUpperBound of the StatAccumulator.
Definition at line 1191 of file Representation.cpp.
References p_nbEventAboveUpperBound.
| size_t StatAccumulator::getNbEventAboveUpperBound | ( | ) | const |
Gets the nbEventAboveUpperBound of the StatAccumulator.
Definition at line 1184 of file Representation.cpp.
References p_nbEventAboveUpperBound.
Referenced by CheckStream< Swarm::StatAccumulator >::check_stream(), Swarm::BaseDaemon::fillVecStat(), testUpdateStatAccumulator(), and Swarm::BaseDaemon::updateStatAccumulator().
Here is the caller graph for this function:| size_t & StatAccumulator::getNbEventBelowLowerBound | ( | ) |
Gets the nbEventBelowLowerBound of the StatAccumulator.
Definition at line 1177 of file Representation.cpp.
References p_nbEventBelowLowerBound.
| size_t StatAccumulator::getNbEventBelowLowerBound | ( | ) | const |
Gets the nbEventBelowLowerBound of the StatAccumulator.
Definition at line 1170 of file Representation.cpp.
References p_nbEventBelowLowerBound.
Referenced by CheckStream< Swarm::StatAccumulator >::check_stream(), Swarm::BaseDaemon::fillVecStat(), testUpdateStatAccumulator(), and Swarm::BaseDaemon::updateStatAccumulator().
Here is the caller graph for this function:| float & StatAccumulator::getSum | ( | ) |
Gets the sum of the StatAccumulator.
Definition at line 1093 of file Representation.cpp.
References p_sum.
| float StatAccumulator::getSum | ( | ) | const |
Gets the sum of the StatAccumulator.
Definition at line 1086 of file Representation.cpp.
References p_sum.
Referenced by CheckStream< Swarm::StatAccumulator >::check_stream(), Swarm::BaseDaemon::fillVecStat(), testUpdateStatAccumulator(), and Swarm::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 1135 of file Representation.cpp.
References p_vecHistogram.
| const std::vector< size_t > & StatAccumulator::getVecHistogram | ( | ) | const |
Gets the vecHistogram of the StatAccumulator.
Definition at line 1128 of file Representation.cpp.
References p_vecHistogram.
Referenced by CheckStream< Swarm::StatAccumulator >::check_stream(), createTestStatAccumulator(), Swarm::BaseDaemon::fillVecStat(), testUpdateStatAccumulator(), and Swarm::BaseDaemon::updateStatAccumulator().
Here is the caller graph for this function:
|
private |
Initialisation Function of class StatAccumulator.
Definition at line 1211 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 1001 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 474 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, Swarm::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 1044 of file Representation.cpp.
References p_histLowerBound.
Referenced by Swarm::BaseDaemon::createNewStat(), createTestStatAccumulator(), testClearStatAccumulator(), and testUpdateStatAccumulator().
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 1051 of file Representation.cpp.
References p_histUpperBound.
Referenced by Swarm::BaseDaemon::createNewStat(), createTestStatAccumulator(), testClearStatAccumulator(), and testUpdateStatAccumulator().
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 1030 of file Representation.cpp.
References p_max.
Referenced by Swarm::BaseDaemon::createNewStat(), createTestStatAccumulator(), and Swarm::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 1023 of file Representation.cpp.
References p_min.
Referenced by Swarm::BaseDaemon::createNewStat(), createTestStatAccumulator(), and Swarm::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 1009 of file Representation.cpp.
References p_nbEvent.
Referenced by Swarm::BaseDaemon::createNewStat(), createTestStatAccumulator(), and Swarm::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 1065 of file Representation.cpp.
References p_nbEventAboveUpperBound.
Referenced by Swarm::BaseDaemon::createNewStat(), createTestStatAccumulator(), and Swarm::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 1058 of file Representation.cpp.
References p_nbEventBelowLowerBound.
Referenced by Swarm::BaseDaemon::createNewStat(), createTestStatAccumulator(), and Swarm::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 1016 of file Representation.cpp.
References p_sum.
Referenced by Swarm::BaseDaemon::createNewStat(), createTestStatAccumulator(), and Swarm::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 1037 of file Representation.cpp.
References p_vecHistogram.
Referenced by Swarm::BaseDaemon::createNewStat(), createTestStatAccumulator(), testClearStatAccumulator(), and testUpdateStatAccumulator().
Here is the caller graph for this function:
|
private |
Minimum value in the histogram.
Definition at line 503 of file Representation.h.
Referenced by copyStatAccumulator(), getHistLowerBound(), getHistLowerBound(), initialisationStatAccumulator(), readWriteStream(), and setHistLowerBound().
|
private |
Maximum value in the histogram.
Definition at line 505 of file Representation.h.
Referenced by copyStatAccumulator(), getHistUpperBound(), getHistUpperBound(), initialisationStatAccumulator(), readWriteStream(), and setHistUpperBound().
|
private |
Maximum value of the stat.
Definition at line 499 of file Representation.h.
Referenced by copyStatAccumulator(), getMax(), getMax(), initialisationStatAccumulator(), readWriteStream(), and setMax().
|
private |
Minimum value of the stat.
Definition at line 497 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 493 of file Representation.h.
Referenced by copyStatAccumulator(), getNbEvent(), getNbEvent(), initialisationStatAccumulator(), readWriteStream(), and setNbEvent().
|
private |
Number of events above the upper boundary.
Definition at line 509 of file Representation.h.
Referenced by copyStatAccumulator(), getNbEventAboveUpperBound(), getNbEventAboveUpperBound(), initialisationStatAccumulator(), readWriteStream(), and setNbEventAboveUpperBound().
|
private |
Number of events below the lower bound.
Definition at line 507 of file Representation.h.
Referenced by copyStatAccumulator(), getNbEventBelowLowerBound(), getNbEventBelowLowerBound(), initialisationStatAccumulator(), readWriteStream(), and setNbEventBelowLowerBound().
|
private |
Sum of all values.
Definition at line 495 of file Representation.h.
Referenced by copyStatAccumulator(), getSum(), getSum(), initialisationStatAccumulator(), readWriteStream(), and setSum().
|
private |
Histogram to acccumulate event counts per quantile.
Definition at line 501 of file Representation.h.
Referenced by copyStatAccumulator(), getVecHistogram(), getVecHistogram(), readWriteStream(), and setVecHistogram().