#include <XANAGSUtil.h>
Public Methods | |
XANAGSUtil (const UInt_t nComp, const Float_t *weights, const Float_t *parameters, const Float_t *errors) | |
constructor from pointer to existing histogram. More... | |
~XANAGSUtil () | |
Float_t | quantile (const Float_t) const |
normalised integral from -inf to x (taking into account under- & overflows). More... | |
Float_t | mode () const |
mode. More... | |
Double_t | pdf (const Double_t &) const |
value of the pdf. More... | |
Double_t | cdf (const Double_t &) const |
value of integral(pdf). More... | |
Double_t | dpdf1 (const Double_t &) const |
first derivative of pdf. More... | |
Double_t | dpdf2 (const Double_t &) const |
second derivative of pdf. More... | |
Double_t | combinedMean () const |
mean value of combined state. More... | |
Float_t | MaxWeight () const |
Private Methods | |
Double_t | gauss (const Double_t &, const Double_t &, const Double_t &) const |
value of gaussian distribution. More... | |
Double_t | gaussInt (const Double_t &, const Double_t &, const Double_t &) const |
integrated value of gaussian distribution. More... | |
Double_t | findMode (const Double_t) const |
mean value of combined state Double_t combinedMean() const; mode from starting value. More... | |
Private Attributes | |
UInt_t | theNComp |
Float_t * | theWeights |
Float_t * | theParameters |
Float_t * | theErrors |
The class keeps a pointer to the original histogram (don't delete before this object is deleted!).
Definition at line 11 of file XANAGSUtil.h.
|
constructor from pointer to existing histogram.
Definition at line 14 of file XANAGSUtil.h. References theErrors, theNComp, theParameters, and theWeights.
00015 : 00016 theNComp(nComp), 00017 theWeights(0), 00018 theParameters(0), 00019 theErrors(0) 00020 { 00021 if ( theNComp ) { 00022 theWeights = new Float_t[theNComp]; 00023 theParameters = new Float_t[theNComp]; 00024 theErrors = new Float_t[theNComp]; 00025 } 00026 const Float_t* wPtr1(weights); 00027 const Float_t* pPtr1(parameters); 00028 const Float_t* ePtr1(errors); 00029 Float_t* wPtr2(theWeights); 00030 Float_t* pPtr2(theParameters); 00031 Float_t* ePtr2(theErrors); 00032 for ( UInt_t i=0; i<theNComp; i++ ) { 00033 *(wPtr2++) = weights ? *(wPtr1++) : 1.; 00034 *(pPtr2++) = *(pPtr1++); 00035 *(ePtr2++) = *(ePtr1++); 00036 } 00037 } |
|
Definition at line 38 of file XANAGSUtil.h. References theErrors, theParameters, and theWeights.
00039 { 00040 delete [] theWeights; 00041 delete [] theParameters; 00042 delete [] theErrors; 00043 } |
|
value of integral(pdf).
|
|
mean value of combined state.
|
|
first derivative of pdf.
|
|
second derivative of pdf.
|
|
mean value of combined state Double_t combinedMean() const; mode from starting value.
|
|
value of gaussian distribution.
|
|
integrated value of gaussian distribution.
|
|
|
|
mode.
|
|
value of the pdf.
|
|
normalised integral from -inf to x (taking into account under- & overflows).
|
|
Definition at line 79 of file XANAGSUtil.h. Referenced by XANAGSUtil, and ~XANAGSUtil. |
|
Definition at line 76 of file XANAGSUtil.h. Referenced by XANAGSUtil. |
|
Definition at line 78 of file XANAGSUtil.h. Referenced by XANAGSUtil, and ~XANAGSUtil. |
|
Definition at line 77 of file XANAGSUtil.h. Referenced by XANAGSUtil, and ~XANAGSUtil. |