CMSDK 2.0.1
Cross-platform C++ base library and SDK for the Psyclone AIOS platform
Loading...
Searching...
No Matches
Stats.cpp File Reference

Implementation of the Stats sliding-window sample collector. More...

#include "MovingAverage.h"
#include "UnitTestFramework.h"
Include dependency graph for Stats.cpp:

Go to the source code of this file.

Namespaces

namespace  cmlabs

Functions

void cmlabs::Register_Stats_Tests ()

Detailed Description

Implementation of the Stats sliding-window sample collector.

All aggregates are computed on demand by walking the retained sample list under the (recursive) mutex; nothing is cached, so getters are O(n) and getMedian() additionally sorts the list in place (see the class warning in Stats.h about the resulting loss of insertion order).

Definition in file Stats.cpp.