Files
2014-06-30 13:58:10 +02:00

50 lines
1006 B
C++

/*
* File: StdDeviationStatistic.h
* Author: jgaebler
*
* Created on June 22, 2011, 4:23 PM
*/
#ifndef STDDEVIATIONSTATISTIC_H
#define STDDEVIATIONSTATISTIC_H
#include "../common/Platform.h"
#include "../common/time/GenericTime.h"
#if OMNETPP
#include <cstddev.h>
#else
#pragma message("StdDeviationStatistic not implemented for ubeeme yet")
#endif
namespace ubeeme {
namespace moversight {
/**
* @brief Provides an abstraction to collecting statistic data as standard deviation.
* @author Jan G&auml;bler
* @ingroup Moversight
* @class StdDeviationStatistic
*/
#if OMNETPP
class StdDeviationStatistic : public cStdDev {
#else
class StdDeviationStatistic {
#endif
public:
StdDeviationStatistic();
StdDeviationStatistic(const char * name);
~StdDeviationStatistic();
void collect(const GenericTime & t);
};
}
}
#endif /* STDDEVIATIONSTATISTIC_H */