Jpp 20.0.0-27-g39925593c-D
the software that should make you happy
Loading...
Searching...
No Matches
Public Types | Public Member Functions | Static Public Member Functions | Public Attributes | Protected Member Functions | Static Protected Member Functions | Protected Attributes | List of all members
JTOOLS::JQuantiles Class Reference

Quantile calculator for a given interpolating function. More...

#include <JQuantiles.hh>

Inheritance diagram for JTOOLS::JQuantiles:
JTOOLS::JRange< double > JTOOLS::JPair< JKey_t, JValue_t > JLANG::JEquals< JFirst_t, JSecond_t > JMATH::JMath< JFirst_t, JSecond_t >

Public Types

typedef JAbstractCollection< double > JAbscissa_t
 
typedef std::pair< double, double > pair_type
 
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.
 
template<class JFunction1D_t >
 JQuantiles (const JFunction1D_t &f1, const double Q=1.0, const double eps=1.0e-6)
 Constructor.
 
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.
 
template<class JFunction1D_t >
void set (const JFunction1D_t &f1, const double Q=1.0, const double eps=1.0e-6)
 Set quantiles.
 
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.
 
double getX () const
 Get position of maximum.
 
double getY () const
 Get value of maximum.
 
double getFWHM () const
 Get Full Width at Half Maximum.
 
double getIntegral () const
 Get integral of function.
 
 operator pair_type () const
 Type conversion operator.
 
const range_typegetRange () const
 Get range.
 
void setRange (const range_type &range)
 Set range.
 
void setRange (argument_type x, argument_type y)
 Set lower and upper limit.
 
void setRange (R first, R second)
 Set range.
 
void setRange (const array_type< JElement_t, JAllocator_t > &buffer)
 Set lower and upper limit according to input data.
 
double getLowerLimit () const
 Get lower limit.
 
double getUpperLimit () const
 Get upper limit.
 
void setLowerLimit (argument_type x)
 Set lower limit.
 
void setUpperLimit (argument_type y)
 Set upper limit.
 
void fixLowerLimit (argument_type x)
 Fix lower limit.
 
void fixUpperLimit (argument_type y)
 Fix upper limit.
 
bool equals (const range_type &range) const
 Equal method.
 
double getLength () const
 Get length (difference between upper and lower limit).
 
void setLength (argument_type length)
 Set length (difference between upper and lower limit).
 
bool is_valid () const
 Check validity of range.
 
bool in_range (argument_type x) const
 Test whether value is inside range.
 
bool operator() (argument_type x) const
 Test whether value is inside range.
 
double constrain (argument_type x) const
 Constrain value to range.
 
double mod (argument_type x) const
 Modulo value with respect to range.
 
bool overlap (const range_type &range) const
 Test overlap with given range.
 
range_typeinclude (argument_type x)
 Include given value to range.
 
range_typejoin (const range_type &range)
 Join ranges.
 
range_typecombine (const range_type &range)
 Combine ranges.
 
range_typeadd (argument_type x)
 Add offset.
 
range_typeadd (const range_type &range)
 Add offsets.
 
range_typesub (argument_type x)
 Subtract offset.
 
range_typesub (const range_type &range)
 Subtract offsets.
 
range_typemul (const double factor)
 Multiply range.
 
JFirst_t & mul (const JSecond_t &object)
 Multiply with object.
 
range_typediv (const double factor)
 Divide range.
 
const key_typegetKey () const
 
const mapped_typegetValue () const
 
mapped_typegetValue ()
 

Static Public Member Functions

static double getMinimum ()
 Get minimum possible value.
 
static double getMaximum ()
 Get maximum possible value.
 
static JRange< double, std::less< double > > DEFAULT_RANGE ()
 Default range.
 

Public Attributes

std::less< double > compare
 Function object for comparisons.
 
JKey_t first
 
JValue_t second
 

Protected Member Functions

void setRange (R first, R second, const JLANG::JBool< false > &option)
 Set range.
 
void setRange (R first, R second, const JLANG::JBool< true > &option)
 Set range.
 

Static Protected Member Functions

template<class JFunction1D_t >
static double search (const double xa, const double xb, const double xc, const JFunction1D_t &f, const int is, const double eps=1.0e-6)
 Locate maximum or minimun of function.
 

Protected Attributes

double Xmax
 
double Ymax
 
double fwhm
 
double sum
 

Detailed Description

Quantile calculator for a given interpolating function.

It is assumed that the function has a single maximum.

Definition at line 32 of file JQuantiles.hh.

Member Typedef Documentation

◆ JAbscissa_t

Definition at line 37 of file JQuantiles.hh.

◆ pair_type

typedef std::pair<double ,double > JTOOLS::JRange< double , std::less<double > >::pair_type
inherited

Definition at line 45 of file JRange.hh.

◆ range_type

typedef JRange<double , std::less<double > > JTOOLS::JRange< double , std::less<double > >::range_type
inherited

Definition at line 46 of file JRange.hh.

◆ argument_type

typedef JLANG::JClass<double >::argument_type JTOOLS::JRange< double , std::less<double > >::argument_type
inherited

Definition at line 47 of file JRange.hh.

◆ key_type

template<class JKey_t , class JValue_t >
typedef JKey_t JTOOLS::JPair< JKey_t, JValue_t >::key_type
inherited

Definition at line 32 of file JPair.hh.

◆ mapped_type

template<class JKey_t , class JValue_t >
typedef JValue_t JTOOLS::JPair< JKey_t, JValue_t >::mapped_type
inherited

Definition at line 33 of file JPair.hh.

Constructor & Destructor Documentation

◆ JQuantiles() [1/3]

JTOOLS::JQuantiles::JQuantiles ( )
inline

Default constructor.

Definition at line 42 of file JQuantiles.hh.

42 :
43 Xmax(0.0),
44 Ymax(0.0),
45 fwhm(0.0),
46 sum (0.0)
47 {}

◆ JQuantiles() [2/3]

template<class JFunction1D_t >
JTOOLS::JQuantiles::JQuantiles ( const JFunction1D_t & f1,
const double Q = 1.0,
const double eps = 1.0e-6 )
inline

Constructor.

Parameters
f1functional collection
Qquantile
epsrelative precision

Definition at line 58 of file JQuantiles.hh.

60 :
61 Xmax(0.0),
62 Ymax(0.0),
63 fwhm(0.0),
64 sum (0.0)
65 {
66 set(f1, Q, eps);
67 }
void set(const JFunction1D_t &f1, const double Q=1.0, const double eps=1.0e-6)
Set quantiles.

◆ JQuantiles() [3/3]

template<class JFunction1D_t >
JTOOLS::JQuantiles::JQuantiles ( const JAbscissa_t & abscissa,
const JFunction1D_t & f1,
const double Q = 1.0,
const double eps = 1.0e-6 )
inline

Constructor.

Parameters
abscissaabscissa
f1function
Qquantile
epsrelative precision

Definition at line 79 of file JQuantiles.hh.

82 :
83 Xmax(0.0),
84 Ymax(0.0),
85 fwhm(0.0),
86 sum (0.0)
87 {
88 set(abscissa, f1, Q, eps);
89 }

Member Function Documentation

◆ set() [1/2]

template<class JFunction1D_t >
void JTOOLS::JQuantiles::set ( const JFunction1D_t & f1,
const double Q = 1.0,
const double eps = 1.0e-6 )
inline

Set quantiles.

Parameters
f1functional collection
Qquantile
epsrelative precision

Definition at line 100 of file JQuantiles.hh.

103 {
104 typedef typename JFunction1D_t::const_iterator const_iterator;
105
106 if (f1.empty()) {
107 throw JEmptyCollection("JQuantiles() no data.");
108 }
109
110
111 // maximum
112
113 const_iterator p = f1.begin();
114
115 for (const_iterator i = f1.begin(); i != f1.end(); ++i) {
116 if (i->getY() > p->getY()) {
117 p = i;
118 }
119 }
120
121
122 // x at maximum
123
124 Xmax = p->getX();
125
126 if (p != f1.begin()) {
127
128 const double xa = (--p)->getX();
129 const double xb = (++p)->getX();
130
131 if (++p != f1.end()) {
132
133 const double xc = p->getX();
134
135 Xmax = search(xa, xb, xc, f1, -1, eps);
136 }
137 }
138
139 Ymax = get_value(f1(Xmax));
140
141
142 // integral & quantile
143
144 if (Q > 0.0 && Q <= 1.0) {
145
146 JSplineFunction1D<JSplineElement2D<double, double>, JCollection, double> buffer;
147
148 try {
149
150 sum = makeCDF(f1, buffer);
151
152 setLowerLimit(buffer(0.5 * (1.0 - Q)));
153 setUpperLimit(buffer(0.5 * (1.0 + Q)));
154 }
155 catch(const JException& error) {
156 sum = 0.0;
157 }
158
159 } else {
160
162
163 if (Q > 1.0) {
164 setLowerLimit(f1. begin()->getX());
165 setUpperLimit(f1.rbegin()->getX());
166 } else if (Q <= 0.0) {
169 }
170 }
171
172
173 // FWHM
174
175 fwhm = 0.0;
176
177 for (double xmin = f1.begin()->getX(), xmax = Xmax, v = 0.5*Ymax; ; ) {
178
179 const double x = 0.5 * (xmin + xmax);
180 const double y = get_value(f1(x));
181
182 if (fabs(y - v) < eps*v || xmax - xmin < eps) {
183 fwhm -= x;
184 break;
185 }
186
187 if (y > v)
188 xmax = x;
189 else
190 xmin = x;
191 }
192
193 for (double xmin = Xmax, xmax = f1.rbegin()->getX(), v = 0.5*Ymax; ; ) {
194
195 const double x = 0.5 * (xmin + xmax);
196 const double y = get_value(f1(x));
197
198 if (fabs(y - v) < eps*v || xmax - xmin < eps) {
199 fwhm += x;
200 break;
201 }
202
203 if (y > v)
204 xmin = x;
205 else
206 xmax = x;
207 }
208 }
static double search(const double xa, const double xb, const double xc, const JFunction1D_t &f, const int is, const double eps=1.0e-6)
Locate maximum or minimun of function.
double getX() const
Get position of maximum.
void setUpperLimit(argument_type y)
Set upper limit.
Definition JRange.hh:235
void setLowerLimit(argument_type x)
Set lower limit.
Definition JRange.hh:224
JContainer_t::ordinate_type makeCDF(const JContainer_t &input, JMappableCollection< JKey_t, JValue_t > &output, const typename JContainer_t::ordinate_type eps=JMATH::zero)
Conversion of data points to cumulative probability distribition (CDF).
JContainer_t::ordinate_type getIntegral(const JContainer_t &input)
Get integral of input data points.
JResultEvaluator< JResult_t >::result_type get_value(const JResult_t &value)
Helper method to recursively evaluate a to function value.
Definition JResult.hh:998

◆ set() [2/2]

template<class JFunction1D_t >
void JTOOLS::JQuantiles::set ( const JAbscissa_t & abscissa,
const JFunction1D_t & f1,
const double Q = 1.0,
const double eps = 1.0e-6 )
inline

Set quantiles.

Parameters
abscissaabscissa
f1function
Qquantile
epsrelative precision

Definition at line 220 of file JQuantiles.hh.

224 {
225 JSplineFunction1D<JSplineElement2D<double, double>, JCollection, double> buffer;
226
227 buffer.configure(abscissa, f1);
228 buffer.compile();
229
230 set(buffer, Q, eps);
231 }

◆ getX()

double JTOOLS::JQuantiles::getX ( ) const
inline

Get position of maximum.

Returns
x value at maximum

Definition at line 239 of file JQuantiles.hh.

240 {
241 return Xmax;
242 }

◆ getY()

double JTOOLS::JQuantiles::getY ( ) const
inline

Get value of maximum.

Returns
y value at maximum

Definition at line 250 of file JQuantiles.hh.

251 {
252 return Ymax;
253 }

◆ getFWHM()

double JTOOLS::JQuantiles::getFWHM ( ) const
inline

Get Full Width at Half Maximum.

Returns
FWHM

Definition at line 261 of file JQuantiles.hh.

262 {
263 return fwhm;
264 }

◆ getIntegral()

double JTOOLS::JQuantiles::getIntegral ( ) const
inline

Get integral of function.

Returns
integral

Definition at line 272 of file JQuantiles.hh.

273 {
274 return sum;
275 }

◆ search()

template<class JFunction1D_t >
static double JTOOLS::JQuantiles::search ( const double xa,
const double xb,
const double xc,
const JFunction1D_t & f,
const int is,
const double eps = 1.0e-6 )
inlinestaticprotected

Locate maximum or minimun of function.

Golden section search code is adopted from reference: Numerical Recipes in C++, W.H. Press, S.A. Teukolsky, W.T. Vetterling and B.P. Flannery, Cambridge University Press.

        xa < xb < xc

        is = +1  ->  There is a minimum, i.e:  f(xb) < min(f(xa),f(xc))
        is = -1  ->  There is a maximum, i.e:  f(xb) > max(f(xa),f(xc))
Parameters
xa
xb
xc
ffunction
issign (+1 -> minimim, -1 -> maximum)
epsrelative precision

Definition at line 306 of file JQuantiles.hh.

312 {
313 static const double R = 0.61803399;
314 static const double C = 1.0 - R;
315
316 double x0 = xa;
317 double x3 = xc;
318 double x1, x2;
319
320 if (fabs(xc-xb) > fabs(xb-xa)) {
321 x1 = xb;
322 x2 = xb + C*(xc-xb);
323 } else {
324 x2 = xb;
325 x1 = xb - C*(xb-xa);
326 }
327
328 double f1 = is * get_value(f(x1));
329 double f2 = is * get_value(f(x2));
330
331 while (fabs(x3-x0) > eps*(fabs(x1)+fabs(x2))) {
332
333 if (f2 < f1) {
334
335 x0 = x1;
336 x1 = x2;
337 x2 = R*x2 + C*x3;
338
339 f1 = f2;
340 f2 = is * get_value(f(x2));
341
342 } else {
343
344 x3 = x2;
345 x2 = x1;
346 x1 = R*x1 + C*x0;
347
348 f2 = f1;
349 f1 = is * get_value(f(x1));
350 }
351 }
352
353 if (f1 < f2)
354 return x1;
355 else
356 return x2;
357 }

◆ operator pair_type()

JTOOLS::JRange< double , std::less<double > >::operator pair_type ( ) const
inlineinherited

Type conversion operator.

Returns
piar

Definition at line 124 of file JRange.hh.

◆ getRange()

const range_type & JTOOLS::JRange< double , std::less<double > >::getRange ( ) const
inlineinherited

Get range.

Returns
range

Definition at line 135 of file JRange.hh.

◆ setRange() [1/6]

void JTOOLS::JRange< double , std::less<double > >::setRange ( const range_type & range)
inlineinherited

Set range.

Parameters
rangerange

Definition at line 146 of file JRange.hh.

◆ setRange() [2/6]

void JTOOLS::JRange< double , std::less<double > >::setRange ( argument_type x,
argument_type y )
inlineinherited

Set lower and upper limit.

Parameters
xlower limit
yupper limit

Definition at line 158 of file JRange.hh.

◆ setRange() [3/6]

void JTOOLS::JRange< double , std::less<double > >::setRange ( R first,
R second )
inlineinherited

Set range.


The arguments could be values or iterators.

Parameters
firstfirst
secondsecond

Definition at line 173 of file JRange.hh.

◆ setRange() [4/6]

void JTOOLS::JRange< double , std::less<double > >::setRange ( const array_type< JElement_t, JAllocator_t > & buffer)
inlineinherited

Set lower and upper limit according to input data.

Parameters
bufferinput data

Definition at line 187 of file JRange.hh.

◆ setRange() [5/6]

void JTOOLS::JRange< double , std::less<double > >::setRange ( R first,
R second,
const JLANG::JBool< false > & option )
inlineprotectedinherited

Set range.

Parameters
firstfirst
secondsecond
optionfalse

Definition at line 576 of file JRange.hh.

◆ setRange() [6/6]

void JTOOLS::JRange< double , std::less<double > >::setRange ( R first,
R second,
const JLANG::JBool< true > & option )
inlineprotectedinherited

Set range.

Parameters
firstfirst
secondsecond
optiontrue

Definition at line 590 of file JRange.hh.

◆ getLowerLimit()

double JTOOLS::JRange< double , std::less<double > >::getLowerLimit ( ) const
inlineinherited

Get lower limit.

Returns
lower limit

Definition at line 202 of file JRange.hh.

◆ getUpperLimit()

double JTOOLS::JRange< double , std::less<double > >::getUpperLimit ( ) const
inlineinherited

Get upper limit.

Returns
upper limit

Definition at line 213 of file JRange.hh.

◆ setLowerLimit()

void JTOOLS::JRange< double , std::less<double > >::setLowerLimit ( argument_type x)
inlineinherited

Set lower limit.

Parameters
xlower limit

Definition at line 224 of file JRange.hh.

◆ setUpperLimit()

void JTOOLS::JRange< double , std::less<double > >::setUpperLimit ( argument_type y)
inlineinherited

Set upper limit.

Parameters
yupper limit

Definition at line 235 of file JRange.hh.

◆ fixLowerLimit()

void JTOOLS::JRange< double , std::less<double > >::fixLowerLimit ( argument_type x)
inlineinherited

Fix lower limit.

The range is shifted to the given lower limit.

Parameters
xlower limit

Definition at line 248 of file JRange.hh.

◆ fixUpperLimit()

void JTOOLS::JRange< double , std::less<double > >::fixUpperLimit ( argument_type y)
inlineinherited

Fix upper limit.

The range is shifted to the given upper limit.

Parameters
yupper limit

Definition at line 262 of file JRange.hh.

◆ equals()

bool JTOOLS::JRange< double , std::less<double > >::equals ( const range_type & range) const
inlineinherited

Equal method.

Parameters
rangerange
Returns
true if this range is equal to given range; else false

Definition at line 275 of file JRange.hh.

◆ getLength()

double JTOOLS::JRange< double , std::less<double > >::getLength ( ) const
inlineinherited

Get length (difference between upper and lower limit).

Returns
length

Definition at line 289 of file JRange.hh.

◆ setLength()

void JTOOLS::JRange< double , std::less<double > >::setLength ( argument_type length)
inlineinherited

Set length (difference between upper and lower limit).

Parameters
lengthlength

Definition at line 300 of file JRange.hh.

◆ is_valid()

bool JTOOLS::JRange< double , std::less<double > >::is_valid ( ) const
inlineinherited

Check validity of range.

Returns
true if lower limit less than or equal to upper limit; else false

Definition at line 311 of file JRange.hh.

◆ in_range()

bool JTOOLS::JRange< double , std::less<double > >::in_range ( argument_type x) const
inlineinherited

Test whether value is inside range.

Parameters
xvalue
Returns
true if lower limit <= value <= upper limit; else false

Definition at line 323 of file JRange.hh.

◆ operator()()

bool JTOOLS::JRange< double , std::less<double > >::operator() ( argument_type x) const
inlineinherited

Test whether value is inside range.

Parameters
xvalue
Returns
true if lower limit <= value <= upper limit; else false

Definition at line 336 of file JRange.hh.

◆ constrain()

double JTOOLS::JRange< double , std::less<double > >::constrain ( argument_type x) const
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.

Parameters
xvalue
Returns
lower limit <= x <= upper limit

Definition at line 350 of file JRange.hh.

◆ mod()

double JTOOLS::JRange< double , std::less<double > >::mod ( argument_type x) const
inlineinherited

Modulo value with respect to range.


Parameters
xvalue
Returns
lower limit <= x <= upper limit

Definition at line 365 of file JRange.hh.

◆ overlap()

bool JTOOLS::JRange< double , std::less<double > >::overlap ( const range_type & range) const
inlineinherited

Test overlap with given range.


Parameters
rangerange
Returns
true if there is a non-zero overlap; else false

Definition at line 382 of file JRange.hh.

◆ include()

range_type & JTOOLS::JRange< double , std::less<double > >::include ( argument_type x)
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;

Parameters
xvalue
Returns
range

Definition at line 397 of file JRange.hh.

◆ join()

range_type & JTOOLS::JRange< double , std::less<double > >::join ( const range_type & range)
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).

Parameters
rangerange

Definition at line 415 of file JRange.hh.

◆ combine()

range_type & JTOOLS::JRange< double , std::less<double > >::combine ( const range_type & range)
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.

Parameters
rangerange

Definition at line 432 of file JRange.hh.

◆ add() [1/2]

range_type & JTOOLS::JRange< double , std::less<double > >::add ( argument_type x)
inlineinherited

Add offset.

Parameters
xoffset

Definition at line 446 of file JRange.hh.

◆ add() [2/2]

range_type & JTOOLS::JRange< double , std::less<double > >::add ( const range_type & range)
inlineinherited

Add offsets.


The new lower limit is the sum of the two lower limits and
the new upper limit is the sum of the two upper limits.

Parameters
rangeoffset

Definition at line 476 of file JRange.hh.

◆ sub() [1/2]

range_type & JTOOLS::JRange< double , std::less<double > >::sub ( argument_type x)
inlineinherited

Subtract offset.

Parameters
xoffset

Definition at line 460 of file JRange.hh.

◆ sub() [2/2]

range_type & JTOOLS::JRange< double , std::less<double > >::sub ( const range_type & range)
inlineinherited

Subtract offsets.


The new lower limit is the difference of the two lower limits and
the new upper limit is the difference of the two upper limits.

Parameters
rangeoffset

Definition at line 492 of file JRange.hh.

◆ mul() [1/2]

range_type & JTOOLS::JRange< double , std::less<double > >::mul ( const double factor)
inlineinherited

Multiply range.

Parameters
factorfactor

Definition at line 506 of file JRange.hh.

◆ mul() [2/2]

template<class JFirst_t , class JSecond_t >
JFirst_t & JMATH::JMath< JFirst_t, JSecond_t >::mul ( const JSecond_t & object)
inlineinherited

Multiply with object.

Parameters
objectobject
Returns
result object

Definition at line 354 of file JMath.hh.

355 {
356 return static_cast<JFirst_t&>(*this) = JFirst_t().mul(static_cast<const JFirst_t&>(*this), object);
357 }

◆ div()

range_type & JTOOLS::JRange< double , std::less<double > >::div ( const double factor)
inlineinherited

Divide range.

Parameters
factorfactor

Definition at line 520 of file JRange.hh.

◆ getMinimum()

static double JTOOLS::JRange< double , std::less<double > >::getMinimum ( )
inlinestaticinherited

Get minimum possible value.

Returns
minimum possible value

Definition at line 534 of file JRange.hh.

◆ getMaximum()

static double JTOOLS::JRange< double , std::less<double > >::getMaximum ( )
inlinestaticinherited

Get maximum possible value.

Returns
maximum possible value

Definition at line 545 of file JRange.hh.

◆ DEFAULT_RANGE()

static JRange< double , std::less<double > > JTOOLS::JRange< double , std::less<double > >::DEFAULT_RANGE ( )
inlinestaticinherited

Default range.

This range corresponds to an unphysical range.

Definition at line 555 of file JRange.hh.

◆ getKey()

template<class JKey_t , class JValue_t >
const key_type & JTOOLS::JPair< JKey_t, JValue_t >::getKey ( ) const
inlineinherited

Definition at line 123 of file JPair.hh.

123{ return this->first; }
JKey_t first
Definition JPair.hh:128

◆ getValue() [1/2]

template<class JKey_t , class JValue_t >
const mapped_type & JTOOLS::JPair< JKey_t, JValue_t >::getValue ( ) const
inlineinherited

Definition at line 124 of file JPair.hh.

124{ return this->second; }
JValue_t second
Definition JPair.hh:129

◆ getValue() [2/2]

template<class JKey_t , class JValue_t >
mapped_type & JTOOLS::JPair< JKey_t, JValue_t >::getValue ( )
inlineinherited

Definition at line 126 of file JPair.hh.

126{ return this->second; }

Member Data Documentation

◆ Xmax

double JTOOLS::JQuantiles::Xmax
protected

Definition at line 280 of file JQuantiles.hh.

◆ Ymax

double JTOOLS::JQuantiles::Ymax
protected

Definition at line 281 of file JQuantiles.hh.

◆ fwhm

double JTOOLS::JQuantiles::fwhm
protected

Definition at line 282 of file JQuantiles.hh.

◆ sum

double JTOOLS::JQuantiles::sum
protected

Definition at line 283 of file JQuantiles.hh.

◆ compare

std::less<double > JTOOLS::JRange< double , std::less<double > >::compare
inherited

Function object for comparisons.

Definition at line 565 of file JRange.hh.

◆ first

template<class JKey_t , class JValue_t >
JKey_t JTOOLS::JPair< JKey_t, JValue_t >::first
inherited

Definition at line 128 of file JPair.hh.

◆ second

template<class JKey_t , class JValue_t >
JValue_t JTOOLS::JPair< JKey_t, JValue_t >::second
inherited

Definition at line 129 of file JPair.hh.


The documentation for this class was generated from the following file: