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

Thread-safe running statistics over a sliding window of samples. More...

#include "Utils.h"
Include dependency graph for Stats.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  cmlabs::Stats
 Sliding-window sample collector with average, variance, standard deviation and median. More...

Namespaces

namespace  cmlabs

Detailed Description

Thread-safe running statistics over a sliding window of samples.

Stats keeps up to maxCount most recent values (older ones are dropped) and computes aggregate measures on demand. Used throughout CMSDK for latency/throughput bookkeeping.

Definition in file Stats.h.