JAPAn
Just Another Parity Analyzer
|
Online linear regression with incremental covariance updates. More...
#include <LinReg_Bevington_Pebay.h>
Public Member Functions | |
LinRegBevPeb () | |
LinRegBevPeb (const LinRegBevPeb &source) | |
virtual | ~LinRegBevPeb () |
void | solve () |
bool | failed () |
void | printSummaryP () const |
void | printSummaryY () const |
void | printSummaryYP () const |
void | printSummaryAlphas () const |
void | printSummaryMeansWithUnc () const |
void | printSummaryMeansWithUncCorrected () const |
void | print () |
void | init () |
void | clear () |
void | setDims (int a, int b) |
Int_t | getMeanP (const int i, Double_t &mean) const |
Get mean value of a variable, returns error code. | |
Int_t | getMeanY (const int i, Double_t &mean) const |
Int_t | getMeanYprime (const int i, Double_t &mean) const |
Int_t | getSigmaP (const int i, Double_t &sigma) const |
Get mean value of a variable, returns error code. | |
Int_t | getSigmaY (const int i, Double_t &sigma) const |
Int_t | getSigmaYprime (const int i, Double_t &sigma) const |
Int_t | getCovarianceP (int i, int j, Double_t &covar) const |
Get mean value of a variable, returns error code. | |
Int_t | getCovariancePY (int ip, int iy, Double_t &covar) const |
Int_t | getCovarianceY (int i, int j, Double_t &covar) const |
double | getUsedEve () const |
LinRegBevPeb & | operator+= (const std::pair< TVectorD, TVectorD > &rhs) |
LinRegBevPeb & | operator+= (const LinRegBevPeb &rhs) |
Private Attributes | |
int | nP |
int | nY |
Int_t | fErrorFlag |
is information valid | |
Long64_t | fGoodEventNumber |
accumulated so far | |
TMatrixD | mRPY |
correlations | |
TMatrixD | mRYP |
TMatrixD | mRPP |
TMatrixD | mRYY |
TMatrixD | mRYYp |
TMatrixD | mVPY |
unnormalized covariances | |
TMatrixD | mVYP |
TMatrixD | mVPP |
TMatrixD | mVYY |
TMatrixD | mVYYp |
TVectorD | mVP |
variances | |
TVectorD | mVY |
TVectorD | mVYp |
TMatrixD | mSPY |
normalized covariances | |
TMatrixD | mSYP |
TMatrixD | mSPP |
TMatrixD | mSYY |
TMatrixD | mSYYp |
TVectorD | mSP |
sigmas | |
TVectorD | mSY |
TVectorD | mSYp |
TVectorD | mMP |
mean values | |
TVectorD | mMY |
TVectorD | mMYp |
TMatrixD | Axy |
slopes | |
TMatrixD | Ayx |
TMatrixD | dAxy |
TMatrixD | dAyx |
Friends | |
class | QwCorrelator |
Friend class with correlator for ROOT tree output. | |
LinRegBevPeb | operator+ (LinRegBevPeb lhs, const LinRegBevPeb &rhs) |
std::ostream & | operator<< (std::ostream &stream, const LinRegBevPeb &h) |
Output stream operator. | |
Online linear regression with incremental covariance updates.
Definition at line 30 of file LinReg_Bevington_Pebay.h.
LinRegBevPeb::LinRegBevPeb | ( | ) |
Definition at line 19 of file LinReg_Bevington_Pebay.cc.
References fErrorFlag, fGoodEventNumber, nP, and nY.
Referenced by LinRegBevPeb(), operator+, operator+=(), operator+=(), and operator<<.
LinRegBevPeb::LinRegBevPeb | ( | const LinRegBevPeb & | source | ) |
Definition at line 27 of file LinReg_Bevington_Pebay.cc.
References QwLog::endl(), fErrorFlag, fGoodEventNumber, LinRegBevPeb(), nP, nY, and QwMessage.
|
inlinevirtual |
Definition at line 70 of file LinReg_Bevington_Pebay.h.
void LinRegBevPeb::clear | ( | ) |
Definition at line 76 of file LinReg_Bevington_Pebay.cc.
References Axy, Ayx, dAxy, dAyx, fErrorFlag, fGoodEventNumber, mMP, mMY, mMYp, mRPP, mRPY, mRYP, mRYY, mRYYp, mSP, mSPP, mSPY, mSY, mSYP, mSYp, mSYY, mSYYp, mVP, mVPP, mVPY, mVY, mVYP, mVYp, mVYY, and mVYYp.
|
inline |
Int_t LinRegBevPeb::getCovarianceP | ( | int | i, |
int | j, | ||
Double_t & | covar ) const |
Get mean value of a variable, returns error code.
Definition at line 280 of file LinReg_Bevington_Pebay.cc.
References fGoodEventNumber, mVPP, and nP.
Referenced by printSummaryP().
Int_t LinRegBevPeb::getCovariancePY | ( | int | ip, |
int | iy, | ||
Double_t & | covar ) const |
Definition at line 293 of file LinReg_Bevington_Pebay.cc.
References fGoodEventNumber, mVPY, nP, and nY.
Referenced by printSummaryYP().
Int_t LinRegBevPeb::getCovarianceY | ( | int | i, |
int | j, | ||
Double_t & | covar ) const |
Definition at line 306 of file LinReg_Bevington_Pebay.cc.
References fGoodEventNumber, mVYY, and nY.
Int_t LinRegBevPeb::getMeanP | ( | const int | i, |
Double_t & | mean ) const |
Get mean value of a variable, returns error code.
Definition at line 213 of file LinReg_Bevington_Pebay.cc.
References fGoodEventNumber, mMP, and nP.
Referenced by printSummaryP().
Int_t LinRegBevPeb::getMeanY | ( | const int | i, |
Double_t & | mean ) const |
Definition at line 224 of file LinReg_Bevington_Pebay.cc.
References fGoodEventNumber, mMY, and nY.
Referenced by printSummaryY(), and printSummaryYP().
Int_t LinRegBevPeb::getMeanYprime | ( | const int | i, |
Double_t & | mean ) const |
Definition at line 235 of file LinReg_Bevington_Pebay.cc.
References fGoodEventNumber, mMYp, and nY.
Int_t LinRegBevPeb::getSigmaP | ( | const int | i, |
Double_t & | sigma ) const |
Get mean value of a variable, returns error code.
Definition at line 246 of file LinReg_Bevington_Pebay.cc.
References fGoodEventNumber, mVPP, and nP.
Referenced by printSummaryP(), and printSummaryYP().
Int_t LinRegBevPeb::getSigmaY | ( | const int | i, |
Double_t & | sigma ) const |
Definition at line 258 of file LinReg_Bevington_Pebay.cc.
References fGoodEventNumber, mVYY, and nY.
Referenced by printSummaryY(), and printSummaryYP().
Int_t LinRegBevPeb::getSigmaYprime | ( | const int | i, |
Double_t & | sigma ) const |
Definition at line 269 of file LinReg_Bevington_Pebay.cc.
References fGoodEventNumber, mVYYp, and nY.
|
inline |
void LinRegBevPeb::init | ( | ) |
Definition at line 37 of file LinReg_Bevington_Pebay.cc.
References Axy, Ayx, dAxy, dAyx, fGoodEventNumber, mMP, mMY, mMYp, mRPP, mRPY, mRYP, mRYY, mRYYp, mSP, mSPP, mSPY, mSY, mSYP, mSYp, mSYY, mSYYp, mVP, mVPP, mVPY, mVY, mVYP, mVYp, mVYY, mVYYp, nP, and nY.
LinRegBevPeb & LinRegBevPeb::operator+= | ( | const LinRegBevPeb & | rhs | ) |
Definition at line 172 of file LinReg_Bevington_Pebay.cc.
References fGoodEventNumber, LinRegBevPeb(), mMP, mMY, mVPP, mVPY, and mVYY.
LinRegBevPeb & LinRegBevPeb::operator+= | ( | const std::pair< TVectorD, TVectorD > & | rhs | ) |
Definition at line 133 of file LinReg_Bevington_Pebay.cc.
References fGoodEventNumber, LinRegBevPeb(), mMP, mMY, mVPP, mVPY, and mVYY.
void LinRegBevPeb::print | ( | ) |
void LinRegBevPeb::printSummaryAlphas | ( | ) | const |
Definition at line 376 of file LinReg_Bevington_Pebay.cc.
References Axy, dAxy, QwLog::endl(), fGoodEventNumber, nP, nY, and QwMessage.
void LinRegBevPeb::printSummaryMeansWithUnc | ( | ) | const |
Definition at line 426 of file LinReg_Bevington_Pebay.cc.
References QwLog::endl(), mMY, mSY, nY, and QwMessage.
void LinRegBevPeb::printSummaryMeansWithUncCorrected | ( | ) | const |
Definition at line 439 of file LinReg_Bevington_Pebay.cc.
References QwLog::endl(), mMYp, mSYp, nY, and QwMessage.
void LinRegBevPeb::printSummaryP | ( | ) | const |
Definition at line 319 of file LinReg_Bevington_Pebay.cc.
References QwLog::endl(), fGoodEventNumber, getCovarianceP(), getMeanP(), getSigmaP(), nP, QwMessage, and QwWarning.
void LinRegBevPeb::printSummaryY | ( | ) | const |
Definition at line 356 of file LinReg_Bevington_Pebay.cc.
References QwLog::endl(), fGoodEventNumber, getMeanY(), getSigmaY(), nY, QwMessage, and QwWarning.
void LinRegBevPeb::printSummaryYP | ( | ) | const |
Definition at line 396 of file LinReg_Bevington_Pebay.cc.
References QwLog::endl(), fGoodEventNumber, getCovariancePY(), getMeanY(), getSigmaP(), getSigmaY(), nP, nY, QwMessage, and QwWarning.
|
inline |
void LinRegBevPeb::solve | ( | ) |
normalized covariances
Definition at line 452 of file LinReg_Bevington_Pebay.cc.
References Axy, Ayx, dAxy, dAyx, QwLog::endl(), fErrorFlag, fGoodEventNumber, mMP, mMY, mMYp, mRPP, mRPY, mRYY, mRYYp, mSP, mSPP, mSPY, mSY, mSYP, mSYp, mSYY, mSYYp, mVP, mVPP, mVPY, mVY, mVYP, mVYp, mVYY, mVYYp, nP, QwMessage, and QwWarning.
|
friend |
Definition at line 110 of file LinReg_Bevington_Pebay.h.
References LinRegBevPeb().
|
friend |
Output stream operator.
Definition at line 125 of file LinReg_Bevington_Pebay.h.
References fGoodEventNumber, and LinRegBevPeb().
|
friend |
Friend class with correlator for ROOT tree output.
Definition at line 121 of file LinReg_Bevington_Pebay.h.
References QwCorrelator.
Referenced by QwCorrelator.
|
private |
slopes
Definition at line 64 of file LinReg_Bevington_Pebay.h.
Referenced by clear(), init(), printSummaryAlphas(), and solve().
|
private |
Definition at line 64 of file LinReg_Bevington_Pebay.h.
|
private |
Definition at line 64 of file LinReg_Bevington_Pebay.h.
Referenced by clear(), init(), printSummaryAlphas(), and solve().
|
private |
Definition at line 64 of file LinReg_Bevington_Pebay.h.
|
private |
is information valid
Definition at line 35 of file LinReg_Bevington_Pebay.h.
Referenced by clear(), LinRegBevPeb(), LinRegBevPeb(), and solve().
|
private |
accumulated so far
Definition at line 36 of file LinReg_Bevington_Pebay.h.
Referenced by clear(), failed(), getCovarianceP(), getCovariancePY(), getCovarianceY(), getMeanP(), getMeanY(), getMeanYprime(), getSigmaP(), getSigmaY(), getSigmaYprime(), getUsedEve(), init(), LinRegBevPeb(), LinRegBevPeb(), operator+=(), operator+=(), operator<<, printSummaryAlphas(), printSummaryP(), printSummaryY(), printSummaryYP(), and solve().
|
private |
mean values
Definition at line 60 of file LinReg_Bevington_Pebay.h.
Referenced by clear(), getMeanP(), init(), operator+=(), operator+=(), print(), and solve().
|
private |
Definition at line 60 of file LinReg_Bevington_Pebay.h.
Referenced by clear(), getMeanY(), init(), operator+=(), operator+=(), print(), printSummaryMeansWithUnc(), and solve().
|
private |
Definition at line 60 of file LinReg_Bevington_Pebay.h.
Referenced by clear(), getMeanYprime(), init(), printSummaryMeansWithUncCorrected(), and solve().
|
private |
Definition at line 40 of file LinReg_Bevington_Pebay.h.
|
private |
correlations
Definition at line 39 of file LinReg_Bevington_Pebay.h.
|
private |
Definition at line 39 of file LinReg_Bevington_Pebay.h.
|
private |
Definition at line 40 of file LinReg_Bevington_Pebay.h.
|
private |
Definition at line 41 of file LinReg_Bevington_Pebay.h.
|
private |
sigmas
Definition at line 56 of file LinReg_Bevington_Pebay.h.
|
private |
Definition at line 53 of file LinReg_Bevington_Pebay.h.
|
private |
normalized covariances
Definition at line 52 of file LinReg_Bevington_Pebay.h.
|
private |
Definition at line 56 of file LinReg_Bevington_Pebay.h.
Referenced by clear(), init(), printSummaryMeansWithUnc(), and solve().
|
private |
Definition at line 52 of file LinReg_Bevington_Pebay.h.
|
private |
Definition at line 57 of file LinReg_Bevington_Pebay.h.
Referenced by clear(), init(), printSummaryMeansWithUncCorrected(), and solve().
|
private |
Definition at line 53 of file LinReg_Bevington_Pebay.h.
|
private |
Definition at line 54 of file LinReg_Bevington_Pebay.h.
|
private |
variances
Definition at line 48 of file LinReg_Bevington_Pebay.h.
|
private |
Definition at line 45 of file LinReg_Bevington_Pebay.h.
Referenced by clear(), getCovarianceP(), getSigmaP(), init(), operator+=(), operator+=(), print(), and solve().
|
private |
unnormalized covariances
Definition at line 44 of file LinReg_Bevington_Pebay.h.
Referenced by clear(), getCovariancePY(), init(), operator+=(), operator+=(), print(), and solve().
|
private |
Definition at line 48 of file LinReg_Bevington_Pebay.h.
|
private |
Definition at line 44 of file LinReg_Bevington_Pebay.h.
|
private |
Definition at line 49 of file LinReg_Bevington_Pebay.h.
|
private |
Definition at line 45 of file LinReg_Bevington_Pebay.h.
Referenced by clear(), getCovarianceY(), getSigmaY(), init(), operator+=(), operator+=(), print(), and solve().
|
private |
Definition at line 46 of file LinReg_Bevington_Pebay.h.
Referenced by clear(), getSigmaYprime(), init(), print(), and solve().
|
private |
Definition at line 31 of file LinReg_Bevington_Pebay.h.
Referenced by failed(), getCovarianceP(), getCovariancePY(), getMeanP(), getSigmaP(), init(), LinRegBevPeb(), LinRegBevPeb(), print(), printSummaryAlphas(), printSummaryP(), printSummaryYP(), setDims(), and solve().
|
private |
Definition at line 32 of file LinReg_Bevington_Pebay.h.
Referenced by getCovariancePY(), getCovarianceY(), getMeanY(), getMeanYprime(), getSigmaY(), getSigmaYprime(), init(), LinRegBevPeb(), LinRegBevPeb(), print(), printSummaryAlphas(), printSummaryMeansWithUnc(), printSummaryMeansWithUncCorrected(), printSummaryY(), printSummaryYP(), and setDims().