|
| | JPMTRateRange () |
| | Default constructor. More...
|
| |
| | JPMTRateRange (const double Rmin_Hz, const double Rmax_Hz) |
| | Constructor. 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 upper limit. More...
|
| |
| template<class R > |
| void | setRange (R first, R second) |
| | Set range. More...
|
| |
| template<class iterator_type , class value_type , class result_type > |
| void | setRange (iterator_type __begin, iterator_type __end, result_type value_type::*member) |
| | Set lower and upper limit according to minimal and maximal value in input data, respectively. More...
|
| |
| template<class iterator_type , class value_type , class result_type > |
| void | setRange (iterator_type __begin, iterator_type __end, result_type(value_type::*function)() const) |
| | Set lower and upper limit according to minimal and maximal value in input data, respectively. More...
|
| |
| T | getLowerLimit () const |
| | Get lower limit. More...
|
| |
| T | 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...
|
| |
| T | 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...
|
| |
| T | constrain (argument_type x) const |
| | Constrain value to range. More...
|
| |
| T | mod (argument_type x) const |
| | Modulo value with respect 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 offsets. More...
|
| |
| range_type & | sub (argument_type x) |
| | Subtract offset. More...
|
| |
| range_type & | sub (const range_type &range) |
| | Subtract offsets. 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...
|
| |
| T | 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 () |
| |
Data structure for range of PMT rates.
Definition at line 22 of file JPMTRateRange.hh.
template<class T, class JComparator_t = std::less<T>>
template<class iterator_type , class value_type , class result_type >
| void JTOOLS::JRange< T, JComparator_t >::setRange |
( |
iterator_type |
__begin, |
|
|
iterator_type |
__end, |
|
|
result_type value_type::* |
member |
|
) |
| |
|
inlineinherited |
Set lower and upper limit according to minimal and maximal value in input data, respectively.
- Parameters
-
| __begin | begin of data |
| __end | end of data |
| member | pointer to data member |
Definition at line 182 of file JRange.hh.
186 for (iterator_type i = __begin; i != __end; ++i) {
template<class T, class JComparator_t = std::less<T>>
template<class iterator_type , class value_type , class result_type >
| void JTOOLS::JRange< T, JComparator_t >::setRange |
( |
iterator_type |
__begin, |
|
|
iterator_type |
__end, |
|
|
result_type(value_type::*)() const |
function |
|
) |
| |
|
inlineinherited |
Set lower and upper limit according to minimal and maximal value in input data, respectively.
- Parameters
-
| __begin | begin of data |
| __end | end of data |
| function | pointer to member method |
Definition at line 200 of file JRange.hh.
204 for (iterator_type i = __begin; i != __end; ++i) {