Jpp
|
Quantile calculator for a given function. More...
#include <JQuantiles.hh>
Public Types | |
typedef JAbstractCollection < double > | JAbscissa_t |
typedef JRange< double, std::less< double > > | range_type |
typedef JLANG::JClass< double > ::argument_type | argument_type |
typedef JKey_t | key_type |
typedef JValue_t | mapped_type |
Public Member Functions | |
JQuantiles () | |
Default constructor. More... | |
template<class JFunction1D_t > | |
JQuantiles (const JFunction1D_t &f1, const double Q=1.0, const double eps=1.0e-6) | |
Constructor. More... | |
template<class JFunction1D_t > | |
JQuantiles (const JAbscissa_t &abscissa, const JFunction1D_t &f1, const double Q=1.0, const double eps=1.0e-6) | |
Constructor. More... | |
template<class JFunction1D_t > | |
void | set (const JFunction1D_t &f1, const double Q=1.0, const double eps=1.0e-6) |
Set quantiles. More... | |
template<class JFunction1D_t > | |
void | set (const JAbscissa_t &abscissa, const JFunction1D_t &f1, const double Q=1.0, const double eps=1.0e-6) |
Set quantiles. More... | |
double | getX () const |
Get position of maximum. More... | |
double | getY () const |
Get value of maximum. More... | |
double | getFWHM () const |
Get Full Width at Half Maximum. More... | |
double | getIntegral () const |
Get integral of function. More... | |
const range_type & | getRange () const |
Get range. More... | |
void | setRange (const range_type &range) |
Set range. More... | |
void | setRange (argument_type x, argument_type y) |
Set lower and uppper limit. More... | |
void | setRange (iterator_type __begin, iterator_type __end, result_type value_type::*member) |
Set lower and uppper limit. More... | |
void | setRange (iterator_type __begin, iterator_type __end, result_type(value_type::*function)() const) |
Set lower and uppper limit. More... | |
double | getLowerLimit () const |
Get lower limit. More... | |
double | getUpperLimit () const |
Get upper limit. More... | |
void | setLowerLimit (argument_type x) |
Set lower limit. More... | |
void | setUpperLimit (argument_type y) |
Set upper limit. More... | |
void | fixLowerLimit (argument_type x) |
Fix lower limit. More... | |
void | fixUpperLimit (argument_type y) |
Fix upper limit. More... | |
bool | equals (const range_type &range) const |
Equal method. More... | |
double | getLength () const |
Get length (difference between upper and lower limit). More... | |
bool | is_valid () const |
Check validity of range. More... | |
bool | operator() (argument_type x) const |
Test whether value is inside range. More... | |
double | constrain (argument_type x) const |
Constrain value to range. More... | |
bool | overlap (const range_type &range) const |
Test overlap with given range. More... | |
range_type | include (argument_type x) |
Include given value to range. More... | |
range_type & | join (const range_type &range) |
Join ranges. More... | |
range_type & | combine (const range_type &range) |
Combine ranges. More... | |
range_type & | add (argument_type x) |
Add offset. More... | |
range_type & | add (const range_type &range) |
Add offset. More... | |
range_type & | sub (argument_type x) |
Subtract offset. More... | |
range_type & | sub (const range_type &range) |
Subtract offset. More... | |
range_type & | mul (const double factor) |
Multiply range. More... | |
JFirst_t & | mul (const JSecond_t &object) |
Multiply with object. More... | |
range_type & | div (const double factor) |
Divide range. More... | |
double | getN (const double R) const |
Get expected number of occurances of given rate within this interval. More... | |
const key_type & | getKey () const |
const mapped_type & | getValue () const |
mapped_type & | getValue () |
Static Public Member Functions | |
static double | getMinimum () |
Get minimum possible value. More... | |
static double | getMaximum () |
Get maximum possible value. More... | |
Public Attributes | |
std::less< double > | compare |
Function object. More... | |
JKey_t | first |
JValue_t | second |
Static Public Attributes | |
static const JRange< double, std::less< double > > | DEFAULT_RANGE |
Default range. More... | |
Protected Attributes | |
double | Xmax |
double | Ymax |
double | fwhm |
double | sum |
Quantile calculator for a given function.
It is assumed that the function has a single maximum.
Definition at line 106 of file JQuantiles.hh.
typedef JAbstractCollection<double> JTOOLS::JQuantiles::JAbscissa_t |
Definition at line 111 of file JQuantiles.hh.
|
inherited |
|
inherited |
|
inherited |
|
inherited |
|
inline |
|
inline |
Constructor.
f1 | functional collection |
Q | quantile |
eps | relative precision |
Definition at line 132 of file JQuantiles.hh.
|
inline |
Constructor.
abscissa | abscissa |
f1 | function |
Q | quantile |
eps | relative precision |
Definition at line 153 of file JQuantiles.hh.
|
inline |
Set quantiles.
f1 | functional collection |
Q | quantile |
eps | relative precision |
Definition at line 174 of file JQuantiles.hh.
|
inline |
Set quantiles.
abscissa | abscissa |
f1 | function |
Q | quantile |
eps | relative precision |
Definition at line 294 of file JQuantiles.hh.
|
inline |
|
inline |
|
inline |
|
inline |
|
inlineinherited |
Get range.
Definition at line 109 of file JRange.hh.
|
inlineinherited |
Set range.
range | range |
Definition at line 120 of file JRange.hh.
|
inlineinherited |
|
inlineinherited |
Set lower and uppper limit.
__begin | begin of data |
__end | end of data |
member | pointer to data member |
Definition at line 147 of file JRange.hh.
|
inlineinherited |
Set lower and uppper limit.
__begin | begin of data |
__end | end of data |
function | pointer to member method |
Definition at line 165 of file JRange.hh.
|
inlineinherited |
Get lower limit.
|
inlineinherited |
Get upper limit.
|
inlineinherited |
Set lower limit.
x | lower limit |
|
inlineinherited |
Set upper limit.
y | upper limit |
|
inlineinherited |
|
inlineinherited |
|
inlineinherited |
Equal method.
range | range |
Definition at line 253 of file JRange.hh.
|
inlineinherited |
Get length (difference between upper and lower limit).
Definition at line 267 of file JRange.hh.
|
inlineinherited |
Check validity of range.
Definition at line 278 of file JRange.hh.
|
inlineinherited |
Test whether value is inside range.
x | value |
Definition at line 290 of file JRange.hh.
|
inlineinherited |
Constrain value to range.
This method returns the original value if it is in this range, else lower limit if value < lower limit or upper limit if value > upper limit.
x | value |
Definition at line 305 of file JRange.hh.
|
inlineinherited |
Test overlap with given range.
The result is equivalent to join(range).is_valid().
range | range |
Definition at line 321 of file JRange.hh.
|
inlineinherited |
Include given value to range.
The new lower limit is the minimim of the original lower limit and given value and the new upper limit is the maximum of the original upper limit and given value;
x | value |
Definition at line 336 of file JRange.hh.
|
inlineinherited |
Join ranges.
The new lower limit is the maximim of the two lower limits and the new upper limit is the minimum of the two upper limits. This operation results in an equal or smaller range and may result in an unphysical range (i.e. lower limit > upper limit).
range | range |
Definition at line 354 of file JRange.hh.
|
inlineinherited |
Combine ranges.
The new lower limit is the minimim of the two lower limits and the new upper limit is the maximum of the two upper limits. This operation results in an equal or larger range.
range | range |
Definition at line 371 of file JRange.hh.
|
inlineinherited |
|
inlineinherited |
|
inlineinherited |
|
inlineinherited |
|
inlineinherited |
|
inlineinherited |
Multiply with object.
object | object |
Definition at line 273 of file JMath.hh.
|
inlineinherited |
|
inlineinherited |
Get expected number of occurances of given rate within this interval.
R | rate |
Definition at line 474 of file JRange.hh.
|
inlinestaticinherited |
|
inlinestaticinherited |
Get maximum possible value.
Definition at line 496 of file JRange.hh.
|
inlineinherited |
|
inlineinherited |
|
inlineinherited |
|
protected |
Definition at line 353 of file JQuantiles.hh.
|
protected |
Definition at line 354 of file JQuantiles.hh.
|
protected |
Definition at line 355 of file JQuantiles.hh.
|
protected |
Definition at line 356 of file JQuantiles.hh.
|
staticinherited |
|
inherited |
|
inherited |
|
inherited |