Jpp 20.0.0-rc.2
the software that should make you happy
|
1D Binned element with bin centering. More...
#include <JElement.hh>
Public Types | |
typedef JElement2D< JAbscissa_t, JOrdinate_t > | element_type |
typedef element_type::abscissa_type | abscissa_type |
typedef element_type::ordinate_type | ordinate_type |
Public Member Functions | |
JBin1D () | |
Default constructor. | |
JBin1D (typename JLANG::JClass< abscissa_type >::argument_type x, typename JLANG::JClass< ordinate_type >::argument_type y, typename JLANG::JClass< abscissa_type >::argument_type u, typename JLANG::JClass< ordinate_type >::argument_type w2) | |
Constructor. | |
JBin1D (typename JLANG::JClass< abscissa_type >::argument_type x, typename JLANG::JClass< ordinate_type >::argument_type y) | |
Constructor. | |
void | fill (typename JLANG::JClass< abscissa_type >::argument_type x, typename JLANG::JClass< ordinate_type >::argument_type w) |
Add abscissa value. | |
abscissa_type | getBinCenter () const |
Get bin center. | |
ordinate_type | getBinContent () const |
Get bin content. | |
ordinate_type | getBinError () const |
Get bin error. | |
ordinate_type | getEffectiveBinContent () const |
Get effective bin content. | |
JBin1D & | negate () |
Negate bin. | |
JBin1D & | add (const JBin1D &bin) |
Add bin. | |
JBin1D & | sub (const JBin1D &bin) |
Subtract bin. | |
JBin1D & | mul (const double value) |
Scale contents. | |
JBin1D & | div (const double value) |
Divide contents. | |
JBin1D & | mul (const JBin1D &bin) |
Multiply bins. | |
abscissa_type | getX () const |
Get abscissa value. | |
const ordinate_type & | getY () const |
Get ordinate value. | |
ordinate_type & | getY () |
Get ordinate value. | |
JFirst_t & | mul (const JSecond_t &object) |
Multiply with object. | |
Protected Attributes | |
abscissa_type | __u |
Sum of weighted abscissa values. | |
ordinate_type | __w2 |
Sum of squared weights. | |
abscissa_type | __x |
ordinate_type | __y |
1D Binned element with bin centering.
Note that the internal data members needed for the calculation of the bin center are not subject to I/O, i.e. the I/O of this class is identical to that of the JElement2D class.
Definition at line 352 of file JElement.hh.
JElement2D<JAbscissa_t, JOrdinate_t> JTOOLS::JBin1D< JAbscissa_t, JOrdinate_t >::element_type |
Definition at line 357 of file JElement.hh.
element_type::abscissa_type JTOOLS::JBin1D< JAbscissa_t, JOrdinate_t >::abscissa_type |
Definition at line 359 of file JElement.hh.
element_type::ordinate_type JTOOLS::JBin1D< JAbscissa_t, JOrdinate_t >::ordinate_type |
Definition at line 360 of file JElement.hh.
|
inline |
Default constructor.
Definition at line 366 of file JElement.hh.
|
inline |
Constructor.
x | abscissa value |
y | ordinate value (sum of weights) |
u | sum of weighted abscissa values |
w2 | sum of squared weights |
Definition at line 381 of file JElement.hh.
|
inline |
Constructor.
x | abscissa value |
y | ordinate value (sum of weights) |
Definition at line 403 of file JElement.hh.
|
inline |
Add abscissa value.
x | abscissa value |
w | weight |
Definition at line 415 of file JElement.hh.
|
inline |
|
inline |
|
inline |
|
inline |
Get effective bin content.
For a bin filled with identical weights the return value of this function
corresponds to a Poisson count with equivalent relative error.
Definition at line 467 of file JElement.hh.
|
inline |
Negate bin.
Note: This method should only be used for binned elements which can hold negative weights.
Definition at line 488 of file JElement.hh.
|
inline |
|
inline |
|
inline |
Scale contents.
value | multiplication factor |
Definition at line 534 of file JElement.hh.
|
inline |
Divide contents.
value | division factor |
Definition at line 550 of file JElement.hh.
|
inline |
Multiply bins.
bin | bin |
Definition at line 566 of file JElement.hh.
|
inlineinherited |
|
inlineinherited |
|
inlineinherited |
|
inlineinherited |
|
protected |
Sum of weighted abscissa values.
Definition at line 584 of file JElement.hh.
|
protected |
Sum of squared weights.
Definition at line 585 of file JElement.hh.
|
protectedinherited |
Definition at line 141 of file JElement.hh.
|
protectedinherited |
Definition at line 142 of file JElement.hh.