|
Jpp
|
Quantile calculator. More...
#include <JQuantile.hh>
Public Member Functions | |
| JQuantile (const JTitle &title="", const bool quantiles=false) | |
| Constructor. More... | |
| template<class iterator_type > | |
| JQuantile (const JTitle &title, iterator_type __begin, iterator_type __end, const bool quantiles=false, const double w=1.0) | |
| Constructor. More... | |
| template<class JElement_t , class JAllocator_t > | |
| JQuantile (const JTitle &title, const array_type< JElement_t, JAllocator_t > &buffer, const bool quantiles=false, const double w=1.0) | |
| Constructor. More... | |
| JQuantile & | add (const JQuantile &Q) |
| Add quantile. More... | |
| void | put (const double x, const double w=1.0) |
| Put value. More... | |
| template<class iterator_type > | |
| void | put (iterator_type __begin, iterator_type __end, const double w=1.0) |
| Put data. More... | |
| template<class JElement_t , class JAllocator_t > | |
| void | put (const array_type< JElement_t, JAllocator_t > &buffer, const double w=1.0) |
| Put data. 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 | getMin () const |
| Get minimum. More... | |
| double | getMax () const |
| Get maximum. 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... | |
| void | reset () |
| Reset. More... | |
| const std::string & | getTitle () const |
| Get title. More... | |
| void | setTitle (const std::string &title) |
| Set title. More... | |
| JFirst_t & | mul (const JSecond_t &object) |
| Multiply with object. 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::multimap< 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 88 of file JQuantile.hh.
|
inline |
Constructor.
| title | title |
| quantiles | quantiles |
Definition at line 98 of file JQuantile.hh.
|
inline |
Constructor.
| title | title |
| __begin | begin of data |
| __end | end of data |
| quantiles | quantiles |
| w | weight |
Definition at line 114 of file JQuantile.hh.
|
inline |
Constructor.
| title | title |
| buffer | input data |
| quantiles | quantiles |
| w | weight |
Definition at line 134 of file JQuantile.hh.
Add quantile.
| Q | quantile |
Definition at line 150 of file JQuantile.hh.
|
inline |
|
inline |
Put data.
| __begin | begin of data |
| __end | end of data |
| w | weight |
Definition at line 196 of file JQuantile.hh.
|
inline |
Put data.
| buffer | input data |
| w | weight |
Definition at line 213 of file JQuantile.hh.
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
Get mean value.
Definition at line 282 of file JQuantile.hh.
|
inline |
Get RMS.
Definition at line 296 of file JQuantile.hh.
|
inline |
Get standard deviation.
Definition at line 310 of file JQuantile.hh.
|
inline |
Get maximal deviation from average.
| relative | if true, relative to average, else absolute |
Definition at line 325 of file JQuantile.hh.
|
inline |
Test relative accuracy.
| precision | relative precision |
Definition at line 340 of file JQuantile.hh.
|
inline |
Get quantile.
| Q | quantile |
| reverse | reverse |
Definition at line 353 of file JQuantile.hh.
|
inline |
Print quantile.
| out | output stream |
| lpr | long print |
Definition at line 379 of file JQuantile.hh.
|
inlinestaticprotected |
Get quantile.
| __begin | begin of data |
| __end | end of data |
| W | weight |
Definition at line 423 of file JQuantile.hh.
|
inlineinherited |
|
inlineinherited |
Get title.
|
inlineinherited |
Set title.
| title | title |
|
inlineinherited |
Multiply with object.
| object | object |
Definition at line 357 of file JMath.hh.
|
friend |
Print quantile.
| out | output stream |
| quantile | quantile |
Definition at line 408 of file JQuantile.hh.
|
protectedinherited |
Definition at line 73 of file JQuantile.hh.
|
protectedinherited |
Definition at line 74 of file JQuantile.hh.
|
protectedinherited |
Definition at line 75 of file JQuantile.hh.
|
protectedinherited |
Definition at line 76 of file JQuantile.hh.
|
protectedinherited |
Definition at line 77 of file JQuantile.hh.
|
protectedinherited |
Definition at line 78 of file JQuantile.hh.
|
protectedinherited |
Definition at line 79 of file JQuantile.hh.
|
protectedinherited |
Definition at line 80 of file JQuantile.hh.
1.8.5