Jpp
Public Types | Public Member Functions | Static Public Member Functions | Public Attributes | Static Public Attributes | Protected Member Functions | Protected Attributes | Friends | List of all members
JTOOLS::JAbstractHistogram< JAbscissa_t > Struct Template Reference

Simple data structure for histogram binning. More...

#include <JAbstractHistogram.hh>

Inheritance diagram for JTOOLS::JAbstractHistogram< JAbscissa_t >:
JTOOLS::JRange< JAbscissa_t > JTOOLS::JPair< JAbscissa_t, JAbscissa_t > JLANG::JEquals< JFirst_t, JSecond_t > JMATH::JMath< JFirst_t, JSecond_t >

Public Types

typedef JAbscissa_t abscissa_type
 
typedef JRange< abscissa_typerange_type
 
typedef JLANG::JClass< JAbscissa_t >::argument_type argument_type
 
typedef JAbscissa_t key_type
 
typedef JAbscissa_t mapped_type
 

Public Member Functions

 JAbstractHistogram ()
 Default constructor. More...
 
 JAbstractHistogram (const int nx, const abscissa_type xmin, const abscissa_type xmax)
 Constructor. More...
 
 JAbstractHistogram (const abscissa_type xmin, const abscissa_type xmax)
 Constructor. More...
 
int getNumberOfBins () const
 Get number of bins. More...
 
void setBinWidth (const abscissa_type dx, int option=0)
 Set bin width. More...
 
bool is_valid () const
 Check validity of histogram binning. More...
 
 operator JGrid< abscissa_type > () const
 Type conversion operator. More...
 
const range_typegetRange () 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...
 
void setRange (R first, R second)
 Set range. More...
 
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...
 
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...
 
JAbscissa_t getLowerLimit () const
 Get lower limit. More...
 
JAbscissa_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...
 
JAbscissa_t getLength () const
 Get length (difference between upper and lower limit). More...
 
bool operator() (argument_type x) const
 Test whether value is inside range. More...
 
JAbscissa_t constrain (argument_type x) const
 Constrain value to range. More...
 
JAbscissa_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_typejoin (const range_type &range)
 Join ranges. More...
 
range_typecombine (const range_type &range)
 Combine ranges. More...
 
range_typeadd (argument_type x)
 Add offset. More...
 
range_typeadd (const range_type &range)
 Add offsets. More...
 
range_typesub (argument_type x)
 Subtract offset. More...
 
range_typesub (const range_type &range)
 Subtract offsets. More...
 
range_typemul (const double factor)
 Multiply range. More...
 
JFirst_t & mul (const JSecond_t &object)
 Multiply with object. More...
 
range_typediv (const double factor)
 Divide range. More...
 
JAbscissa_t getN (const double R) const
 Get expected number of occurances of given rate within this interval. More...
 
const key_typegetKey () const
 
const mapped_typegetValue () const
 
mapped_typegetValue ()
 

Static Public Member Functions

static JAbscissa_t getMinimum ()
 Get minimum possible value. More...
 
static JAbscissa_t getMaximum ()
 Get maximum possible value. More...
 

Public Attributes

std::less< JAbscissa_t > compare
 Function object. More...
 
JAbscissa_t first
 
JAbscissa_t second
 

Static Public Attributes

static const JRange< JAbscissa_t, std::less< JAbscissa_t > > DEFAULT_RANGE
 Default range. More...
 

Protected Member Functions

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

Protected Attributes

int number_of_bins
 

Friends

std::istream & operator>> (std::istream &in, JAbstractHistogram< JAbscissa_t > &histogram)
 Read histogram from input. More...
 
std::ostream & operator<< (std::ostream &out, const JAbstractHistogram< JAbscissa_t > &histogram)
 Write histogram to output. More...
 

Detailed Description

template<class JAbscissa_t>
struct JTOOLS::JAbstractHistogram< JAbscissa_t >

Simple data structure for histogram binning.

Definition at line 24 of file JAbstractHistogram.hh.

Member Typedef Documentation

◆ abscissa_type

template<class JAbscissa_t>
typedef JAbscissa_t JTOOLS::JAbstractHistogram< JAbscissa_t >::abscissa_type

Definition at line 28 of file JAbstractHistogram.hh.

◆ range_type

template<class JAbscissa_t>
typedef JRange<abscissa_type> JTOOLS::JAbstractHistogram< JAbscissa_t >::range_type

Definition at line 29 of file JAbstractHistogram.hh.

◆ argument_type

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

Definition at line 42 of file JRange.hh.

◆ key_type

typedef JAbscissa_t JTOOLS::JPair< JAbscissa_t , JAbscissa_t >::key_type
inherited

Definition at line 32 of file JPair.hh.

◆ mapped_type

typedef JAbscissa_t JTOOLS::JPair< JAbscissa_t , JAbscissa_t >::mapped_type
inherited

Definition at line 33 of file JPair.hh.

Constructor & Destructor Documentation

◆ JAbstractHistogram() [1/3]

template<class JAbscissa_t>
JTOOLS::JAbstractHistogram< JAbscissa_t >::JAbstractHistogram ( )
inline

Default constructor.

Definition at line 35 of file JAbstractHistogram.hh.

35  :
38  {}

◆ JAbstractHistogram() [2/3]

template<class JAbscissa_t>
JTOOLS::JAbstractHistogram< JAbscissa_t >::JAbstractHistogram ( const int  nx,
const abscissa_type  xmin,
const abscissa_type  xmax 
)
inline

Constructor.

Parameters
nxnumber of bins
xminlower limit
xmaxupper limit

Definition at line 48 of file JAbstractHistogram.hh.

50  :
51  JRange<JAbscissa_t>(xmin, xmax),
52  number_of_bins(nx)
53  {}

◆ JAbstractHistogram() [3/3]

template<class JAbscissa_t>
JTOOLS::JAbstractHistogram< JAbscissa_t >::JAbstractHistogram ( const abscissa_type  xmin,
const abscissa_type  xmax 
)
inline

Constructor.

Parameters
xminlower limit
xmaxupper limit

Definition at line 62 of file JAbstractHistogram.hh.

63  :
64  JRange<JAbscissa_t>(xmin, xmax),
66  {}

Member Function Documentation

◆ getNumberOfBins()

template<class JAbscissa_t>
int JTOOLS::JAbstractHistogram< JAbscissa_t >::getNumberOfBins ( ) const
inline

Get number of bins.

Returns
number of bins

Definition at line 74 of file JAbstractHistogram.hh.

75  {
76  return number_of_bins;
77  }

◆ setBinWidth()

template<class JAbscissa_t>
void JTOOLS::JAbstractHistogram< JAbscissa_t >::setBinWidth ( const abscissa_type  dx,
int  option = 0 
)
inline

Set bin width.

If option < 0, adjust lower limit; if option > 0, adjust upper limit; else no adjustments.

Parameters
dxbin width
optionoption

Definition at line 88 of file JAbstractHistogram.hh.

89  {
90  number_of_bins = (int) (this->getLength() / dx);
91 
92  if (option < 0) { this->setLowerLimit(this->getUpperLimit() - number_of_bins + dx); }
93  if (option > 0) { this->setUpperLimit(this->getLowerLimit() + number_of_bins + dx); }
94  }

◆ is_valid()

template<class JAbscissa_t>
bool JTOOLS::JAbstractHistogram< JAbscissa_t >::is_valid ( ) const
inline

Check validity of histogram binning.

Returns
true if both range and number of bins are valid; else false

Definition at line 102 of file JAbstractHistogram.hh.

103  {
104  return static_cast<const range_type&>(*this).is_valid() && number_of_bins > 0;
105  }

◆ operator JGrid< abscissa_type >()

template<class JAbscissa_t>
JTOOLS::JAbstractHistogram< JAbscissa_t >::operator JGrid< abscissa_type > ( ) const
inline

Type conversion operator.

Returns
grid

Definition at line 113 of file JAbstractHistogram.hh.

114  {
115  return make_grid(this->getNumberOfBins() + 1, this->getLowerLimit(), this->getUpperLimit());
116  }

◆ getRange()

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

Get range.

Returns
range

Definition at line 128 of file JRange.hh.

129  {
130  return static_cast<const range_type&>(*this);
131  }

◆ setRange() [1/7]

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

Set range.

Parameters
rangerange

Definition at line 139 of file JRange.hh.

140  {
141  static_cast<range_type&>(*this) = range;
142  }

◆ setRange() [2/7]

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

Set lower and upper limit.

Parameters
xlower limit
yupper limit

Definition at line 151 of file JRange.hh.

152  {
153  this->first = x;
154  this->second = y;
155  }

◆ setRange() [3/7]

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

Set range.


The arguments could be values or iterators.

Parameters
firstfirst
secondsecond

Definition at line 166 of file JRange.hh.

167  {
168  using namespace JLANG;
169 
171  }

◆ setRange() [4/7]

void JTOOLS::JRange< JAbscissa_t , std::less<JAbscissa_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
__beginbegin of data
__endend of data
memberpointer to data member

Definition at line 182 of file JRange.hh.

183  {
185 
186  for (iterator_type i = __begin; i != __end; ++i) {
187  include((*i).*member);
188  }
189  }

◆ setRange() [5/7]

void JTOOLS::JRange< JAbscissa_t , std::less<JAbscissa_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
__beginbegin of data
__endend of data
functionpointer to member method

Definition at line 200 of file JRange.hh.

201  {
203 
204  for (iterator_type i = __begin; i != __end; ++i) {
205  include(((*i).*function)());
206  }
207  }

◆ setRange() [6/7]

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

Set range.

Parameters
firstfirst
secondsecond
optionfalse

Definition at line 579 of file JRange.hh.

580  {
582  }

◆ setRange() [7/7]

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

Set range.

Parameters
firstfirst
secondsecond
optiontrue

Definition at line 593 of file JRange.hh.

594  {
596 
597  for (R i = first; i != second; ++i) {
598  include(*i);
599  }
600  }

◆ getLowerLimit()

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

Get lower limit.

Returns
lower limit

Definition at line 215 of file JRange.hh.

216  {
217  return this->first;
218  }

◆ getUpperLimit()

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

Get upper limit.

Returns
upper limit

Definition at line 226 of file JRange.hh.

227  {
228  return this->second;
229  }

◆ setLowerLimit()

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

Set lower limit.

Parameters
xlower limit

Definition at line 237 of file JRange.hh.

238  {
239  this->first = x;
240  }

◆ setUpperLimit()

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

Set upper limit.

Parameters
yupper limit

Definition at line 248 of file JRange.hh.

249  {
250  this->second = y;
251  }

◆ fixLowerLimit()

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

Fix lower limit.

The range is shifted to the given lower limit.

Parameters
xlower limit

Definition at line 261 of file JRange.hh.

262  {
263  this->second += x - this->first;
264  this->first = x;
265  }

◆ fixUpperLimit()

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

Fix upper limit.

The range is shifted to the given upper limit.

Parameters
yupper limit

Definition at line 275 of file JRange.hh.

276  {
277  this->first += y - this->second;
278  this->second = y;
279  }

◆ equals()

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

Equal method.

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

Definition at line 288 of file JRange.hh.

289  {
290  return (!this->compare(this->getLowerLimit(), range.getLowerLimit()) &&
291  !this->compare(range.getLowerLimit(), this->getLowerLimit()) &&
292  !this->compare(this->getUpperLimit(), range.getUpperLimit()) &&
293  !this->compare(range.getUpperLimit(), this->getUpperLimit()));
294  }

◆ getLength()

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

Get length (difference between upper and lower limit).

Returns
length

Definition at line 302 of file JRange.hh.

303  {
304  return getUpperLimit() - getLowerLimit();
305  }

◆ operator()()

bool JTOOLS::JRange< JAbscissa_t , std::less<JAbscissa_t > >::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 325 of file JRange.hh.

326  {
327  return (!compare(x, getLowerLimit()) &&
328  !compare(getUpperLimit(), x));
329  }

◆ constrain()

JAbscissa_t JTOOLS::JRange< JAbscissa_t , std::less<JAbscissa_t > >::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 340 of file JRange.hh.

341  {
342  if (compare(x, getLowerLimit())) { return getLowerLimit(); }
343  if (compare(getUpperLimit(), x)) { return getUpperLimit(); }
344 
345  return x;
346  }

◆ mod()

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

Modulo value with respect to range.


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

Definition at line 355 of file JRange.hh.

356  {
357  if (compare(x, getLowerLimit()))
358  return x + getLength() * floor((getUpperLimit() - x) / getLength());
359  else if (compare(getUpperLimit(), x))
360  return x - getLength() * floor((x - getLowerLimit()) / getLength());
361  else
362  return x;
363  }

◆ overlap()

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

Test overlap with given range.


The result is equivalent to join(range).is_valid().

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

Definition at line 373 of file JRange.hh.

374  {
375  return (compare(getLowerLimit(), range.getUpperLimit()) &&
376  compare(range.getLowerLimit(), getUpperLimit()));
377  }

◆ include()

range_type JTOOLS::JRange< JAbscissa_t , std::less<JAbscissa_t > >::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 388 of file JRange.hh.

389  {
390  if (compare(x, getLowerLimit())) { setLowerLimit(x); }
391  if (compare(getUpperLimit(), x)) { setUpperLimit(x); }
392 
393  return *this;
394  }

◆ join()

range_type& JTOOLS::JRange< JAbscissa_t , std::less<JAbscissa_t > >::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 406 of file JRange.hh.

407  {
408  if (compare(getLowerLimit(), range.getLowerLimit())) { setLowerLimit(range.getLowerLimit()); }
409  if (compare(range.getUpperLimit(), getUpperLimit())) { setUpperLimit(range.getUpperLimit()); }
410 
411  return *this;
412  }

◆ combine()

range_type& JTOOLS::JRange< JAbscissa_t , std::less<JAbscissa_t > >::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 423 of file JRange.hh.

424  {
425  if (compare(range.getLowerLimit(), getLowerLimit())) { setLowerLimit(range.getLowerLimit()); }
426  if (compare(getUpperLimit(), range.getUpperLimit())) { setUpperLimit(range.getUpperLimit()); }
427 
428  return *this;
429  }

◆ add() [1/2]

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

Add offset.

Parameters
xoffset

Definition at line 437 of file JRange.hh.

438  {
439  this->first += x;
440  this->second += x;
441 
442  return *this;
443  }

◆ add() [2/2]

range_type& JTOOLS::JRange< JAbscissa_t , std::less<JAbscissa_t > >::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 467 of file JRange.hh.

468  {
469  this->first += range.getLowerLimit();
470  this->second += range.getUpperLimit();
471 
472  return *this;
473  }

◆ sub() [1/2]

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

Subtract offset.

Parameters
xoffset

Definition at line 451 of file JRange.hh.

452  {
453  this->first -= x;
454  this->second -= x;
455 
456  return *this;
457  }

◆ sub() [2/2]

range_type& JTOOLS::JRange< JAbscissa_t , std::less<JAbscissa_t > >::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 483 of file JRange.hh.

484  {
485  this->first -= range.getLowerLimit();
486  this->second -= range.getUpperLimit();
487 
488  return *this;
489  }

◆ mul() [1/2]

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

Multiply range.

Parameters
factorfactor

Definition at line 497 of file JRange.hh.

498  {
499  this->first *= factor;
500  this->second *= factor;
501 
502  return *this;
503  }

◆ 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 273 of file JMath.hh.

274  {
275  return static_cast<JFirst_t&>(*this) = JCalculator<JFirst_t>::calculator.mul(static_cast<const JFirst_t&>(*this), object);
276  }

◆ div()

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

Divide range.

Parameters
factorfactor

Definition at line 511 of file JRange.hh.

512  {
513  this->first /= factor;
514  this->second /= factor;
515 
516  return *this;
517  }

◆ getN()

JAbscissa_t JTOOLS::JRange< JAbscissa_t , std::less<JAbscissa_t > >::getN ( const double  R) const
inlineinherited

Get expected number of occurances of given rate within this interval.

Parameters
Rrate
Returns
expectation value

Definition at line 526 of file JRange.hh.

527  {
528  return R * (getUpperLimit() - getLowerLimit());
529  }

◆ getMinimum()

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

Get minimum possible value.

Returns
minimum possible value

Definition at line 537 of file JRange.hh.

538  {
539  return JMATH::JLimits<T>::min();
540  }

◆ getMaximum()

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

Get maximum possible value.

Returns
maximum possible value

Definition at line 548 of file JRange.hh.

549  {
550  return JMATH::JLimits<T>::max();
551  }

◆ getKey()

const key_type& JTOOLS::JPair< JAbscissa_t , JAbscissa_t >::getKey ( ) const
inlineinherited

Definition at line 123 of file JPair.hh.

123 { return this->first; }

◆ getValue() [1/2]

const mapped_type& JTOOLS::JPair< JAbscissa_t , JAbscissa_t >::getValue ( ) const
inlineinherited

Definition at line 124 of file JPair.hh.

124 { return this->second; }

◆ getValue() [2/2]

mapped_type& JTOOLS::JPair< JAbscissa_t , JAbscissa_t >::getValue ( )
inlineinherited

Definition at line 126 of file JPair.hh.

126 { return this->second; }

Friends And Related Function Documentation

◆ operator>>

template<class JAbscissa_t>
std::istream& operator>> ( std::istream &  in,
JAbstractHistogram< JAbscissa_t > &  histogram 
)
friend

Read histogram from input.

Parameters
ininput stream
histogramhistogram
Returns
input stream

Definition at line 126 of file JAbstractHistogram.hh.

127  {
128  return in >> histogram.number_of_bins >> static_cast<range_type&>(histogram);
129  }

◆ operator<<

template<class JAbscissa_t>
std::ostream& operator<< ( std::ostream &  out,
const JAbstractHistogram< JAbscissa_t > &  histogram 
)
friend

Write histogram to output.

Parameters
outoutput stream
histogramhistogram
Returns
output stream

Definition at line 139 of file JAbstractHistogram.hh.

140  {
141  return out << histogram.number_of_bins << ' ' << static_cast<const range_type&>(histogram);
142  }

Member Data Documentation

◆ number_of_bins

template<class JAbscissa_t>
int JTOOLS::JAbstractHistogram< JAbscissa_t >::number_of_bins
protected

Definition at line 145 of file JAbstractHistogram.hh.

◆ DEFAULT_RANGE

const JRange< JAbscissa_t , std::less<JAbscissa_t > > JTOOLS::JRange< JAbscissa_t , std::less<JAbscissa_t > >::DEFAULT_RANGE
staticinherited

Default range.

This range corresponds to an unphysical range.

Definition at line 558 of file JRange.hh.

◆ compare

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

Function object.

Parameters
firstfirst argument
secondsecond argument
Returns
true if first < second; else false

Definition at line 568 of file JRange.hh.

◆ first

JAbscissa_t JTOOLS::JPair< JAbscissa_t , JAbscissa_t >::first
inherited

Definition at line 128 of file JPair.hh.

◆ second

JAbscissa_t JTOOLS::JPair< JAbscissa_t , JAbscissa_t >::second
inherited

Definition at line 129 of file JPair.hh.


The documentation for this struct was generated from the following file:
JTOOLS::JRange< JAbscissa_t >::getLowerLimit
JAbscissa_t getLowerLimit() const
Get lower limit.
Definition: JRange.hh:215
JTOOLS::JRange< JAbscissa_t >::include
range_type include(argument_type x)
Include given value to range.
Definition: JRange.hh:388
JTOOLS::JRange< JAbscissa_t >::getUpperLimit
JAbscissa_t getUpperLimit() const
Get upper limit.
Definition: JRange.hh:226
JTOOLS::JPair< JAbscissa_t, JAbscissa_t >::first
JAbscissa_t first
Definition: JPair.hh:128
JLANG::is_iterator
Data structure to check whether given data type is an iterator.
Definition: JClass.hh:62
JTOOLS::JRange< JAbscissa_t >::setRange
void setRange(const range_type &range)
Set range.
Definition: JRange.hh:139
JTOOLS::JRange< JAbscissa_t >::getLength
JAbscissa_t getLength() const
Get length (difference between upper and lower limit).
Definition: JRange.hh:302
JTOOLS::JRange< JAbscissa_t >
JTOOLS::JRange< JAbscissa_t >::getMinimum
static JAbscissa_t getMinimum()
Get minimum possible value.
Definition: JRange.hh:537
JTOOLS::JRange< JAbscissa_t >::setLowerLimit
void setLowerLimit(argument_type x)
Set lower limit.
Definition: JRange.hh:237
JTOOLS::JAbstractHistogram::getNumberOfBins
int getNumberOfBins() const
Get number of bins.
Definition: JAbstractHistogram.hh:74
JTOOLS::JRange< JAbscissa_t >::getMaximum
static JAbscissa_t getMaximum()
Get maximum possible value.
Definition: JRange.hh:548
JTOOLS::JRange< JAbscissa_t >::setUpperLimit
void setUpperLimit(argument_type y)
Set upper limit.
Definition: JRange.hh:248
JMATH::JLimits::max
TTimeStamp max()
Get maximum possible value.
Definition: JMathSupportkit.hh:33
JTOOLS::JRange< JAbscissa_t >::compare
std::less< JAbscissa_t > compare
Function object.
Definition: JRange.hh:568
JLANG::JBool
Auxiliary template class for type bool.
Definition: JBool.hh:20
JTOOLS::make_grid
JGrid< JAbscissa_t > make_grid(const int nx, const JAbscissa_t Xmin, const JAbscissa_t Xmax)
Helper method for JGrid.
Definition: JGrid.hh:177
JTOOLS::JRange< JAbscissa_t >::argument_type
JLANG::JClass< JAbscissa_t >::argument_type argument_type
Definition: JRange.hh:42
JMATH::JCalculator
Auxiliary class for arithmetic operations on objects.
Definition: JCalculator.hh:18
JTOOLS::JAbstractHistogram::number_of_bins
int number_of_bins
Definition: JAbstractHistogram.hh:145
JTOOLS::JPair< JAbscissa_t, JAbscissa_t >::second
JAbscissa_t second
Definition: JPair.hh:129
JLANG
Auxiliary classes and methods for language specific functionality.
Definition: JAbstractClass.hh:10
JMATH::JLimits::min
float min()
Get minimum possible value.
Definition: JLimits.hh:96