![]() |
|
PhoenixSwarm
3.5.0
Library to ease communication between daemons
|
General statistics in the swarm. More...
#include <Representation.h>
Public Member Functions | |
| std::vector< float > & | getAverage () |
| Gets the average of the VecStat. | |
| const std::vector< float > & | getAverage () const |
| Gets the average of the VecStat. | |
| std::vector< time_t > & | getEndTimestamp () |
| Gets the endTimestamp of the VecStat. | |
| const std::vector< time_t > & | getEndTimestamp () const |
| Gets the endTimestamp of the VecStat. | |
| std::vector< float > & | getMax () |
| Gets the max of the VecStat. | |
| const std::vector< float > & | getMax () const |
| Gets the max of the VecStat. | |
| std::vector< float > & | getMin () |
| Gets the min of the VecStat. | |
| const std::vector< float > & | getMin () const |
| Gets the min of the VecStat. | |
| std::vector< size_t > & | getNbEvent () |
| Gets the nbEvent of the VecStat. | |
| const std::vector< size_t > & | getNbEvent () const |
| Gets the nbEvent of the VecStat. | |
| std::vector< float > & | getRate () |
| Gets the rate of the VecStat. | |
| const std::vector< float > & | getRate () const |
| Gets the rate of the VecStat. | |
| std::vector< float > & | getRateEventAboveUpperBound () |
| Gets the rateEventAboveUpperBound of the VecStat. | |
| const std::vector< float > & | getRateEventAboveUpperBound () const |
| Gets the rateEventAboveUpperBound of the VecStat. | |
| std::vector< float > & | getRateEventBelowLowerBound () |
| Gets the rateEventBelowLowerBound of the VecStat. | |
| const std::vector< float > & | getRateEventBelowLowerBound () const |
| Gets the rateEventBelowLowerBound of the VecStat. | |
| std::vector< time_t > & | getStartTimestamp () |
| Gets the startTimestamp of the VecStat. | |
| const std::vector< time_t > & | getStartTimestamp () const |
| Gets the startTimestamp of the VecStat. | |
| std::vector< std::vector< float > > & | getVecRateQuantile () |
| Gets the vecRateQuantile of the VecStat. | |
| const std::vector< std::vector< float > > & | getVecRateQuantile () const |
| Gets the vecRateQuantile of the VecStat. | |
| VecStat & | operator= (const VecStat &other) |
| Operator = of class VecStat. | |
| template<typename Stream, DataStreamMode::DataStreamMode Mode> | |
| bool | readWriteStream (Stream &ds) |
| Load the current VecStat with a stream. | |
| void | setAverage (const std::vector< float > &average) |
| Sets the average of the VecStat. | |
| void | setEndTimestamp (const std::vector< time_t > &endTimestamp) |
| Sets the endTimestamp of the VecStat. | |
| void | setMax (const std::vector< float > &max) |
| Sets the max of the VecStat. | |
| void | setMin (const std::vector< float > &min) |
| Sets the min of the VecStat. | |
| void | setNbEvent (const std::vector< size_t > &nbEvent) |
| Sets the nbEvent of the VecStat. | |
| void | setRate (const std::vector< float > &rate) |
| Sets the rate of the VecStat. | |
| void | setRateEventAboveUpperBound (const std::vector< float > &rateEventAboveUpperBound) |
| Sets the rateEventAboveUpperBound of the VecStat. | |
| void | setRateEventBelowLowerBound (const std::vector< float > &rateEventBelowLowerBound) |
| Sets the rateEventBelowLowerBound of the VecStat. | |
| void | setStartTimestamp (const std::vector< time_t > &startTimestamp) |
| Sets the startTimestamp of the VecStat. | |
| void | setVecRateQuantile (const std::vector< std::vector< float > > &vecRateQuantile) |
| Sets the vecRateQuantile of the VecStat. | |
| VecStat () | |
| Constructor of class VecStat. | |
| VecStat (const VecStat &other) | |
| Copy Constructor of class VecStat. | |
| virtual | ~VecStat () |
| Destructor of class VecStat. | |
Protected Member Functions | |
| void | copyVecStat (const VecStat &other) |
| Copy Function of class VecStat. | |
Private Member Functions | |
| void | initialisationVecStat () |
| Initialisation Function of class VecStat. | |
Private Attributes | |
| std::vector< float > | p_average |
| Mean of the stat. | |
| std::vector< time_t > | p_endTimestamp |
| Timestamp where this stat was finished to be accumulated by the clock of the current daemon (TODO: need unit) | |
| std::vector< float > | p_max |
| Maximum value of the stat. | |
| std::vector< float > | p_min |
| Minimum value of the stat. | |
| std::vector< size_t > | p_nbEvent |
| Number of events used to make this statistic. | |
| std::vector< float > | p_rate |
| Number of events per second. | |
| std::vector< float > | p_rateEventAboveUpperBound |
| Number of events above the upper boundary per second. | |
| std::vector< float > | p_rateEventBelowLowerBound |
| Number of events below the lower boundary per second. | |
| std::vector< time_t > | p_startTimestamp |
| Timestamp where this stat started to be accumulated by the clock of the current daemon (TODO: need unit) | |
| std::vector< std::vector< float > > | p_vecRateQuantile |
| Vector of binned event rate per quantile (quartile decile, etc) | |
General statistics in the swarm.
Definition at line 258 of file Representation.h.
| VecStat::VecStat | ( | ) |
Constructor of class VecStat.
Definition at line 566 of file Representation.cpp.
References initialisationVecStat().
Referenced by copyVecStat(), operator=(), and VecStat().
Here is the call graph for this function:
Here is the caller graph for this function:
|
virtual |
| VecStat::VecStat | ( | const VecStat & | other | ) |
Copy Constructor of class VecStat.
| other | : VecStat we want ot copy |
Definition at line 578 of file Representation.cpp.
References copyVecStat(), and VecStat().
Here is the call graph for this function:
|
protected |
Copy Function of class VecStat.
| other | : VecStat we want ot copy |
Definition at line 804 of file Representation.cpp.
References p_average, p_endTimestamp, p_max, p_min, p_nbEvent, p_rate, p_rateEventAboveUpperBound, p_rateEventBelowLowerBound, p_startTimestamp, p_vecRateQuantile, and VecStat().
Referenced by operator=(), and VecStat().
Here is the call graph for this function:
Here is the caller graph for this function:| std::vector< float > & VecStat::getAverage | ( | ) |
| const std::vector< float > & VecStat::getAverage | ( | ) | const |
Gets the average of the VecStat.
Definition at line 734 of file Representation.cpp.
References p_average.
Referenced by CheckStream< VecStat >::check_stream(), and BaseDaemon::fillVecStat().
Here is the caller graph for this function:| std::vector< time_t > & VecStat::getEndTimestamp | ( | ) |
Gets the endTimestamp of the VecStat.
Definition at line 699 of file Representation.cpp.
References p_endTimestamp.
| const std::vector< time_t > & VecStat::getEndTimestamp | ( | ) | const |
Gets the endTimestamp of the VecStat.
Definition at line 692 of file Representation.cpp.
References p_endTimestamp.
Referenced by CheckStream< VecStat >::check_stream(), and BaseDaemon::fillVecStat().
Here is the caller graph for this function:| std::vector< float > & VecStat::getMax | ( | ) |
| const std::vector< float > & VecStat::getMax | ( | ) | const |
Gets the max of the VecStat.
Definition at line 720 of file Representation.cpp.
References p_max.
Referenced by CheckStream< VecStat >::check_stream(), and BaseDaemon::fillVecStat().
Here is the caller graph for this function:| std::vector< float > & VecStat::getMin | ( | ) |
| const std::vector< float > & VecStat::getMin | ( | ) | const |
Gets the min of the VecStat.
Definition at line 706 of file Representation.cpp.
References p_min.
Referenced by CheckStream< VecStat >::check_stream(), and BaseDaemon::fillVecStat().
Here is the caller graph for this function:| std::vector< size_t > & VecStat::getNbEvent | ( | ) |
| const std::vector< size_t > & VecStat::getNbEvent | ( | ) | const |
Gets the nbEvent of the VecStat.
Definition at line 664 of file Representation.cpp.
References p_nbEvent.
Referenced by CheckStream< VecStat >::check_stream(), and BaseDaemon::fillVecStat().
Here is the caller graph for this function:| std::vector< float > & VecStat::getRate | ( | ) |
| const std::vector< float > & VecStat::getRate | ( | ) | const |
Gets the rate of the VecStat.
Definition at line 748 of file Representation.cpp.
References p_rate.
Referenced by CheckStream< VecStat >::check_stream(), and BaseDaemon::fillVecStat().
Here is the caller graph for this function:| std::vector< float > & VecStat::getRateEventAboveUpperBound | ( | ) |
Gets the rateEventAboveUpperBound of the VecStat.
Definition at line 797 of file Representation.cpp.
References p_rateEventAboveUpperBound.
| const std::vector< float > & VecStat::getRateEventAboveUpperBound | ( | ) | const |
Gets the rateEventAboveUpperBound of the VecStat.
Definition at line 790 of file Representation.cpp.
References p_rateEventAboveUpperBound.
Referenced by CheckStream< VecStat >::check_stream(), and BaseDaemon::fillVecStat().
Here is the caller graph for this function:| std::vector< float > & VecStat::getRateEventBelowLowerBound | ( | ) |
Gets the rateEventBelowLowerBound of the VecStat.
Definition at line 783 of file Representation.cpp.
References p_rateEventBelowLowerBound.
| const std::vector< float > & VecStat::getRateEventBelowLowerBound | ( | ) | const |
Gets the rateEventBelowLowerBound of the VecStat.
Definition at line 776 of file Representation.cpp.
References p_rateEventBelowLowerBound.
Referenced by CheckStream< VecStat >::check_stream(), and BaseDaemon::fillVecStat().
Here is the caller graph for this function:| std::vector< time_t > & VecStat::getStartTimestamp | ( | ) |
Gets the startTimestamp of the VecStat.
Definition at line 685 of file Representation.cpp.
References p_startTimestamp.
| const std::vector< time_t > & VecStat::getStartTimestamp | ( | ) | const |
Gets the startTimestamp of the VecStat.
Definition at line 678 of file Representation.cpp.
References p_startTimestamp.
Referenced by CheckStream< VecStat >::check_stream(), and BaseDaemon::fillVecStat().
Here is the caller graph for this function:| std::vector< std::vector< float > > & VecStat::getVecRateQuantile | ( | ) |
Gets the vecRateQuantile of the VecStat.
Definition at line 769 of file Representation.cpp.
References p_vecRateQuantile.
| const std::vector< std::vector< float > > & VecStat::getVecRateQuantile | ( | ) | const |
Gets the vecRateQuantile of the VecStat.
Definition at line 762 of file Representation.cpp.
References p_vecRateQuantile.
Referenced by CheckStream< VecStat >::check_stream(), and BaseDaemon::fillVecStat().
Here is the caller graph for this function:
|
private |
Initialisation Function of class VecStat.
Definition at line 818 of file Representation.cpp.
Referenced by VecStat().
Here is the caller graph for this function:Operator = of class VecStat.
| other | : VecStat we want ot copy |
Definition at line 586 of file Representation.cpp.
References copyVecStat(), and VecStat().
Here is the call graph for this function:
|
inline |
Load the current VecStat with a stream.
| [out] | ds | : stream to be used |
Definition at line 300 of file Representation.h.
References p_average, p_endTimestamp, p_max, p_min, p_nbEvent, p_rate, p_rateEventAboveUpperBound, p_rateEventBelowLowerBound, p_startTimestamp, and p_vecRateQuantile.
Referenced by DataStream< Stream, Mode, VecStat >::data_stream().
Here is the caller graph for this function:| void VecStat::setAverage | ( | const std::vector< float > & | average | ) |
| void VecStat::setEndTimestamp | ( | const std::vector< time_t > & | endTimestamp | ) |
Sets the endTimestamp of the VecStat.
| endTimestamp | : endTimestamp of the VecStat |
Definition at line 608 of file Representation.cpp.
References p_endTimestamp.
| void VecStat::setMax | ( | const std::vector< float > & | max | ) |
| void VecStat::setMin | ( | const std::vector< float > & | min | ) |
| void VecStat::setNbEvent | ( | const std::vector< size_t > & | nbEvent | ) |
| void VecStat::setRate | ( | const std::vector< float > & | rate | ) |
| void VecStat::setRateEventAboveUpperBound | ( | const std::vector< float > & | rateEventAboveUpperBound | ) |
Sets the rateEventAboveUpperBound of the VecStat.
| rateEventAboveUpperBound | : rateEventAboveUpperBound of the VecStat |
Definition at line 657 of file Representation.cpp.
References p_rateEventAboveUpperBound.
| void VecStat::setRateEventBelowLowerBound | ( | const std::vector< float > & | rateEventBelowLowerBound | ) |
Sets the rateEventBelowLowerBound of the VecStat.
| rateEventBelowLowerBound | : rateEventBelowLowerBound of the VecStat |
Definition at line 650 of file Representation.cpp.
References p_rateEventBelowLowerBound.
| void VecStat::setStartTimestamp | ( | const std::vector< time_t > & | startTimestamp | ) |
Sets the startTimestamp of the VecStat.
| startTimestamp | : startTimestamp of the VecStat |
Definition at line 601 of file Representation.cpp.
References p_startTimestamp.
| void VecStat::setVecRateQuantile | ( | const std::vector< std::vector< float > > & | vecRateQuantile | ) |
Sets the vecRateQuantile of the VecStat.
| vecRateQuantile | : vecRateQuantile of the VecStat |
Definition at line 643 of file Representation.cpp.
References p_vecRateQuantile.
|
private |
Mean of the stat.
Definition at line 330 of file Representation.h.
Referenced by copyVecStat(), getAverage(), getAverage(), readWriteStream(), and setAverage().
|
private |
Timestamp where this stat was finished to be accumulated by the clock of the current daemon (TODO: need unit)
Definition at line 324 of file Representation.h.
Referenced by copyVecStat(), getEndTimestamp(), getEndTimestamp(), readWriteStream(), and setEndTimestamp().
|
private |
Maximum value of the stat.
Definition at line 328 of file Representation.h.
Referenced by copyVecStat(), getMax(), getMax(), readWriteStream(), and setMax().
|
private |
Minimum value of the stat.
Definition at line 326 of file Representation.h.
Referenced by copyVecStat(), getMin(), getMin(), readWriteStream(), and setMin().
|
private |
Number of events used to make this statistic.
Definition at line 320 of file Representation.h.
Referenced by copyVecStat(), getNbEvent(), getNbEvent(), readWriteStream(), and setNbEvent().
|
private |
Number of events per second.
Definition at line 332 of file Representation.h.
Referenced by copyVecStat(), getRate(), getRate(), readWriteStream(), and setRate().
|
private |
Number of events above the upper boundary per second.
Definition at line 338 of file Representation.h.
Referenced by copyVecStat(), getRateEventAboveUpperBound(), getRateEventAboveUpperBound(), readWriteStream(), and setRateEventAboveUpperBound().
|
private |
Number of events below the lower boundary per second.
Definition at line 336 of file Representation.h.
Referenced by copyVecStat(), getRateEventBelowLowerBound(), getRateEventBelowLowerBound(), readWriteStream(), and setRateEventBelowLowerBound().
|
private |
Timestamp where this stat started to be accumulated by the clock of the current daemon (TODO: need unit)
Definition at line 322 of file Representation.h.
Referenced by copyVecStat(), getStartTimestamp(), getStartTimestamp(), readWriteStream(), and setStartTimestamp().
|
private |
Vector of binned event rate per quantile (quartile decile, etc)
Definition at line 334 of file Representation.h.
Referenced by copyVecStat(), getVecRateQuantile(), getVecRateQuantile(), readWriteStream(), and setVecRateQuantile().