14 #include "../../include/ecl/time/time_data.hpp" 28 for (
unsigned int i = 0; i <
durations.size(); ++i ) {
37 for (
unsigned int i = 0; i <
durations.size(); ++i ) {
38 sum += (
static_cast<double>(
durations[i]) - static_cast<double>(avg))*
39 (static_cast<double>(
durations[i]) -
static_cast<double>(avg));
47 for (
unsigned int i = 0; i <
durations.size(); ++i ) {
48 sum += (
static_cast<double>(
durations[i]) - static_cast<double>(avg))*
49 (static_cast<double>(
durations[i]) -
static_cast<double>(avg));
std::vector< ecl::Duration > durations
Embedded control libraries.
ecl::Duration average() const
Return the average of the elements currently stored.
TimeStamp Duration
Convenience typedef to associate timestamps with the concept of durations.
ecl::Duration stdDev() const
Return the standard deviation of the elements currently stored.
ecl::Duration variance() const
Return the variance of the elements currently stored.