#include <AutocorrelationAnalyzer.h>
Public Member Functions | |
template<class T > | |
void | analyze (const T &t) |
AutocorrelationAnalyzer (int size) | |
double | correlation (int i, int j) |
double | covariance (int i, int j) |
double | mean (int i) |
indexing starts from 0 More... | |
Private Member Functions | |
void | calculate () |
Private Attributes | |
bool | calculated_ |
CLHEP::HepSymMatrix | theCorrelations |
CLHEP::HepSymMatrix | theCovariances |
CLHEP::HepVector | theMeans |
int | theNTotal |
int | theSize |
Friends | |
std::ostream & | operator<< (std::ostream &os, AutocorrelationAnalyzer &aa) |
This class accepts objects which support the [] operator, such as a digi or a vector, and calculates the correlation matrix between the components \Author Rick Wilkinson, Fedor Ratnikov
Definition at line 15 of file AutocorrelationAnalyzer.h.
|
explicit |
Definition at line 5 of file AutocorrelationAnalyzer.cc.
|
inline |
Definition at line 25 of file AutocorrelationAnalyzer.h.
References cuy::ii, OrderedSet::t, theCovariances, theMeans, theNTotal, and theSize.
|
private |
Definition at line 34 of file AutocorrelationAnalyzer.cc.
References calculated_, dqmdumpme::k, GetRecoTauVFromDQM_MC_cff::kk, mathSSE::sqrt(), theCorrelations, theCovariances, theMeans, theNTotal, and theSize.
Referenced by correlation(), covariance(), mean(), and operator<<().
double AutocorrelationAnalyzer::correlation | ( | int | i, |
int | j | ||
) |
Definition at line 27 of file AutocorrelationAnalyzer.cc.
References cms::cuda::assert(), calculate(), calculated_, mps_fire::i, dqmiolumiharvest::j, theCorrelations, and theSize.
double AutocorrelationAnalyzer::covariance | ( | int | i, |
int | j | ||
) |
Definition at line 20 of file AutocorrelationAnalyzer.cc.
References cms::cuda::assert(), calculate(), calculated_, mps_fire::i, dqmiolumiharvest::j, theCovariances, and theSize.
double AutocorrelationAnalyzer::mean | ( | int | i | ) |
indexing starts from 0
Definition at line 13 of file AutocorrelationAnalyzer.cc.
References cms::cuda::assert(), calculate(), calculated_, mps_fire::i, theMeans, and theSize.
|
friend |
Definition at line 51 of file AutocorrelationAnalyzer.cc.
|
private |
Definition at line 45 of file AutocorrelationAnalyzer.h.
Referenced by calculate(), correlation(), covariance(), and mean().
|
private |
Definition at line 44 of file AutocorrelationAnalyzer.h.
Referenced by calculate(), correlation(), and operator<<().
|
private |
Definition at line 43 of file AutocorrelationAnalyzer.h.
Referenced by analyze(), calculate(), covariance(), and operator<<().
|
private |
Definition at line 42 of file AutocorrelationAnalyzer.h.
Referenced by analyze(), calculate(), mean(), and operator<<().
|
private |
Definition at line 41 of file AutocorrelationAnalyzer.h.
Referenced by analyze(), and calculate().
|
private |
Definition at line 40 of file AutocorrelationAnalyzer.h.
Referenced by analyze(), calculate(), correlation(), covariance(), and mean().