|
Jpp
|
Quantile calculator. More...
#include <JQuantile.hh>
Public Member Functions | |
| JQuantile (const JTitle &title="", const int option=0) | |
| Constructor. More... | |
| void | reset () |
| Reset. More... | |
| void | put (const double x, const double w=1.0) |
| Put value. More... | |
| long long int | getCount () const |
| Get total count. More... | |
| double | getTotal () const |
| Get total weight. More... | |
| double | getSum () const |
| Get weighted sum. More... | |
| double | getMean () const |
| Get mean value. More... | |
| double | getRMS () const |
| Get RMS. More... | |
| double | getSTDev () const |
| Get standard deviation. More... | |
| double | getDeviation (const bool relative=true) const |
| Get maximal deviation from average. More... | |
| bool | hasAccuracy (const double precision) const |
| Test relative accuracy. More... | |
| double | getQuantile (const double Q, const bool reverse=false) const |
| Get quantile. More... | |
| std::ostream & | print (std::ostream &out, bool lpr=true) const |
| Print quantile. More... | |
| const std::string & | getTitle () const |
| Get title. More... | |
| void | setTitle (const std::string &title) |
| Set title. More... | |
Static Protected Member Functions | |
| template<class T > | |
| static double | getQuantile (T __begin, T __end, const double W) |
| Get quantile. More... | |
Protected Attributes | |
| double | sum |
| double | rms |
| double | tot |
| double | min |
| double | max |
| long long int | num |
| bool | quantiles |
| std::map< double, double > | buffer |
| std::string | title |
Friends | |
| std::ostream & | operator<< (std::ostream &out, const JQuantile &quantile) |
| Print quantile. More... | |
Quantile calculator.
This class acts as a zero-dimensional histogram.
Definition at line 34 of file JQuantile.hh.
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
Get maximal deviation from average.
| relative | relative to average or absolute |
Definition at line 174 of file JQuantile.hh.
|
inline |
Test relative accuracy.
| precision | relative precision |
Definition at line 189 of file JQuantile.hh.
|
inline |
Get quantile.
| Q | quantile |
| reverse | reverse |
Definition at line 202 of file JQuantile.hh.
|
inline |
Print quantile.
| out | output stream |
| lpr | long print |
Definition at line 228 of file JQuantile.hh.
|
inlinestaticprotected |
Get quantile.
| __begin | begin of data |
| __end | end of data |
| W | weight |
Definition at line 283 of file JQuantile.hh.
|
inlineinherited |
Get title.
|
inlineinherited |
Set title.
| title | title |
|
friend |
Print quantile.
| out | output stream |
| quantile | quantile |
Definition at line 257 of file JQuantile.hh.
|
protected |
Definition at line 263 of file JQuantile.hh.
|
protected |
Definition at line 264 of file JQuantile.hh.
|
protected |
Definition at line 265 of file JQuantile.hh.
|
protected |
Definition at line 266 of file JQuantile.hh.
|
protected |
Definition at line 267 of file JQuantile.hh.
|
protected |
Definition at line 268 of file JQuantile.hh.
|
protected |
Definition at line 270 of file JQuantile.hh.
|
protected |
Definition at line 271 of file JQuantile.hh.
1.8.5