wavelength 1.0.0
Loading...
Searching...
No Matches
statsaccumulator.h
Go to the documentation of this file.
1#pragma once
2
3#include <vector>
4
12public:
20
28 void AddSample(float fSample);
29
40 float GetMedian();
41
42private:
43 float mMin;
44 float mMax;
45 float mSum;
46 std::vector<float> mSamples;
47 int mSorted;
48};
float GetMedian()
Report the median of the samples.
StatsAccumulator()
Construct a collector with no samples.
void AddSample(float fSample)
Add a sample.