Go to the documentation of this file.
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
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.
Embedded control libraries.
ecl::Duration variance() const
Return the variance of the elements currently stored.
ecl_time
Author(s): Daniel Stonier
autogenerated on Wed Mar 2 2022 00:16:19