3 #include "opals/config.hpp"
4 #include "opals/String.hpp"
5 #include "opals/Array.hpp"
6 #include "opals/Vector.hpp"
7 #include "opals/HistoMode.hpp"
51 void setHistoStats(
const long long &CountData,
52 const long long &CountUsed,
53 const double &Min,
const double &Max,
const double &Mean,
54 const double &Median,
const double &Mode,
55 const double &StdDev,
const double &Rms,
56 const double &StdDevMAD,
const double &Skewness,
59 void setCountData(
const double &Count ) { countData = Count; }
60 void setCountUsed(
const double &Count ) { countUsed = Count; }
61 void setMin(
const double &Min ) { min = Min; }
62 void setMax(
const double &Max ) { max = Max; }
63 void setMean(
const double &Mean ) {
mean = Mean; }
64 void setMedian(
const double &Median ) { median = Median; }
65 void setMode(
const double &Mode) { mode = Mode; }
66 void setStdDev(
const double &StdDev) { stdDev = StdDev; }
67 void setRms(
const double &Rms) { rms = Rms; }
68 void setStdDevMAD(
const double &StdDev) { stdDev = StdDev; }
69 void setSkewness(
const double &Skewness ) { skewness = Skewness; }
70 void setQuantiles(
const QuantileVector &Quantiles ) { quantiles = Quantiles; }
71 void setAbsBins(
const AbsBinVector &Bins ) { bins = Bins; }
72 void setBinWidth(
const double &BinWidth) {
binWidth = BinWidth; }
74 void setLabel(
const opals::String &Label ) { label = Label; }
79 long long getCountUsed()
const {
return countUsed; }
80 double getMin()
const {
return min; }
81 double getMax()
const {
return max; }
82 double getMean()
const{
return mean; }
83 double getMedian()
const {
return median; }
84 double getMode()
const {
return mode; }
85 double getStdDev()
const {
return stdDev; }
86 double getRms()
const {
return rms; }
87 double getStdDevMAD()
const {
return stdDevMAD; }
88 double getSkewness()
const {
return skewness; }
89 QuantileVector getQuantiles()
const {
return quantiles; }
90 AbsBinVector getAbsBins()
const {
return bins; }
91 RelBinVector getRelBins()
const;
92 double getBinWidth()
const {
return binWidth; }
97 BinVector getBins()
const {
return getRelBins(); }
100 String logHistoStats(
bool absBins =
true)
const;
101 String printHistoStats(
bool absBins =
true,
unsigned maxBins = 0)
const;
102 String printRelBins(
unsigned maxBins = 0,
double lowerQuantile = 0.05,
double upperQuantile = 0.95)
const;
103 String printRelAbsBins()
const;
106 long long countUsed, countData;
107 double count, min, max,
mean, median, mode, stdDev, rms, stdDevMAD, skewness;
108 QuantileVector quantiles;
CalcMode
TODO: Enumerator for what?
Definition: calcMode.hpp:8
@ binWidth
width of a single bin (e.g. opalsHisto)
DblInt64Vec AbsBinVector
vector of histogram bins stored as std::pair
Definition: HistoStats.hpp:35
HistoMode
HistoMode enumerates different modes of histogram computations.
Definition: HistoMode.hpp:8
PairOfDblVec QuantileVector
deprecated: use AbsBinVector or RelBinVector instead
Definition: HistoStats.hpp:44
Contains the public interface of OPALS.
Definition: AbsValueOrQuantile.hpp:8
long long getCountData() const
query functions
Definition: HistoStats.hpp:78
@ count
always last element
@ exactComputation
flag for exact median computation (opalsHisto)
opals::Vector< std::pair< double, double > > PairOfDblVec
vector of double pairs
Definition: HistoStats.hpp:30
Mimics std::vector<T>
Definition: fwd.hpp:18
A dynamic character string whose interface conforms to STL's std::string.
Definition: String.hpp:35
HistoStats provides a histogram and additional statistical measures.
Definition: HistoStats.hpp:26