Skyward boardcore
Loading...
Searching...
No Matches
Boardcore::Stats Class Reference

Computes on-line statistics of a dataset. More...

#include <Stats.h>

Public Member Functions

 Stats ()
 
void add (float data)
 
void reset ()
 
StatsResult getStats () const
 Return statistics of the elements added so far.
 

Detailed Description

Computes on-line statistics of a dataset.

This class should theoretically work with datasets of up to 2^32-1 elements.

Definition at line 53 of file Stats.h.

Constructor & Destructor Documentation

◆ Stats()

Boardcore::Stats::Stats ( )

Definition at line 41 of file Stats.cpp.

Member Function Documentation

◆ add()

void Boardcore::Stats::add ( float data)

Definition at line 47 of file Stats.cpp.

◆ getStats()

StatsResult Boardcore::Stats::getStats ( ) const

Return statistics of the elements added so far.

Definition at line 71 of file Stats.cpp.

◆ reset()

void Boardcore::Stats::reset ( )

Definition at line 62 of file Stats.cpp.


The documentation for this class was generated from the following files: