gem5
v20.1.0.0
|
Templatized storage for distribution that calculates per tick mean and variance. More...
#include <statistics.hh>
Classes | |
struct | Params |
Public Member Functions | |
AvgSampleStor (Info *info) | |
Create and initialize this storage. More... | |
void | sample (Counter val, int number) |
Add a value to the distribution for the given number of times. More... | |
size_type | size () const |
Return the number of entries, in this case 1. More... | |
bool | zero () const |
Return true if no samples have been added. More... | |
void | prepare (Info *info, DistData &data) |
void | reset (Info *info) |
Reset stat value to default. More... | |
Private Attributes | |
Counter | sum |
Current total. More... | |
Counter | squares |
Current sum of squares. More... | |
Templatized storage for distribution that calculates per tick mean and variance.
Definition at line 1797 of file statistics.hh.
|
inline |
Create and initialize this storage.
Definition at line 1815 of file statistics.hh.
Definition at line 1845 of file statistics.hh.
References curTick(), data, Stats::Deviation, squares, Stats::Info::storageParams, sum, and Stats::DistParams::type.
|
inline |
Reset stat value to default.
Definition at line 1860 of file statistics.hh.
|
inline |
Add a value to the distribution for the given number of times.
Update the running sum and sum of squares.
val | The value to add. |
number | The number of times to add the value. |
Definition at line 1826 of file statistics.hh.
References squares, sum, and X86ISA::val.
|
inline |
Return the number of entries, in this case 1.
Definition at line 1836 of file statistics.hh.
|
inline |
Return true if no samples have been added.
Definition at line 1842 of file statistics.hh.
References sum.
|
private |
Current sum of squares.
Definition at line 1809 of file statistics.hh.
|
private |