![]() |
Diana Software
|
Complex covariance matrix of an array of bolometers. More...
Public Member Functions | |
| QChannelCovariance () | |
| ctor More... | |
| QChannelCovariance (size_t nfreq, const std::vector< int > &channels) | |
| ctor with also allocates space for matrix More... | |
| void | Clear () |
| clear members More... | |
| void | SetNFreq (size_t nfreq) |
| set number of frequencies More... | |
| void | SetChannels (const std::vector< int > &channels) |
| set channels More... | |
| void | SetCovariance (int chI, int chJ, const Diana::QVectorC &cov) |
| set covariance (size equal to nfreq) of channels I and J More... | |
| void | SetNEvents (int chI, int chJ, int nev) |
| set number of events of the couple I,J More... | |
| size_t | GetNFreq () const |
| get number of frequencies More... | |
| std::vector< int > | GetChannels () const |
| get channels More... | |
| size_t | GetNChan () const |
| get number of channels More... | |
| Diana::QVectorC | GetCovariance (int chI, int chJ) const |
| get covariance between channel I and J More... | |
| Diana::QVectorC | GetCovarianceByIndex (int i, int j) const |
| int | GetNEvents (int chI, int chJ) const |
| get number of events of the couple I,J More... | |
| QChannelCovariance | Inverse () const |
| get inverse matrix More... | |
| QChannelCovariance | GetSubMatrix (const std::vector< int > &channels) const |
| Get sub matrix of channels. More... | |
| Diana::QVectorC | GetCorrelation (int chI, int chJ) const |
| get correlation More... | |
| double | GetMeanCorrelation (int chI, int chJ, int fmin=-1, int fmax=-1) const |
| get mean correlation between frequency indices fmin and fmax of the couple (chI,chJ) More... | |
| std::vector< int > | GetChannelsByCorrelation (int chI, int fmin=-1, int fmax=-1) const |
| get mean correlation between frequency indices fmin and fmax of the couple (chI,chJ) More... | |
| void | DumpMeanCorrelationMatrix (std::ostream &o, const int fmin=-1, const int fmax=-1) const |
| dump mean correlation matrix More... | |
| void | Dump (std::ostream &o) const |
| dump summary of content More... | |
Private Member Functions | |
| void | Channels2Indices (const int chI, const int chJ, int &i, int &j) const |
| convert channel numbers to indices More... | |
| QObjectDef (QChannelCovariance, 2) | |
Private Attributes | |
| std::vector< Diana::QMatrixC > | fCovariance |
| std::map< int, int > | fChannels |
| map real channel number into channel index More... | |
| Diana::QMatrix | fNevents |
| number of events used to build each element of fCovariance More... | |
Complex covariance matrix of an array of bolometers.
Definition at line 18 of file QChannelCovariance.hh.
| QChannelCovariance::QChannelCovariance | ( | ) |
ctor
Definition at line 13 of file QChannelCovariance.cc.
| QChannelCovariance::QChannelCovariance | ( | size_t | nfreq, |
| const std::vector< int > & | channels | ||
| ) |
ctor with also allocates space for matrix
Definition at line 17 of file QChannelCovariance.cc.
References SetChannels(), and SetNFreq().
|
private |
convert channel numbers to indices
Definition at line 242 of file QChannelCovariance.cc.
References DianaThrow, err, fChannels, and QERR_SIZE_NOT_MATCH.
Referenced by GetCovariance(), GetNEvents(), SetCovariance(), and SetNEvents().
|
inline |
clear members
Definition at line 28 of file QChannelCovariance.hh.
References fChannels, fCovariance, and fNevents.
Referenced by SetNFreq().
| void QChannelCovariance::Dump | ( | std::ostream & | o | ) | const |
dump summary of content
Definition at line 194 of file QChannelCovariance.cc.
References fCovariance, fNevents, and GetChannels().
| void QChannelCovariance::DumpMeanCorrelationMatrix | ( | std::ostream & | o, |
| const int | fmin = -1, |
||
| const int | fmax = -1 |
||
| ) | const |
dump mean correlation matrix
Definition at line 218 of file QChannelCovariance.cc.
References fChannels, and GetMeanCorrelation().
| std::vector< int > QChannelCovariance::GetChannels | ( | ) | const |
get channels
Definition at line 69 of file QChannelCovariance.cc.
References fChannels.
Referenced by Dump(), and GetChannelsByCorrelation().
| std::vector< int > QChannelCovariance::GetChannelsByCorrelation | ( | int | chI, |
| int | fmin = -1, |
||
| int | fmax = -1 |
||
| ) | const |
get mean correlation between frequency indices fmin and fmax of the couple (chI,chJ)
Definition at line 172 of file QChannelCovariance.cc.
References CompareCorrelations(), GetChannels(), and GetMeanCorrelation().
| Diana::QVectorC QChannelCovariance::GetCorrelation | ( | int | chI, |
| int | chJ | ||
| ) | const |
get correlation
Definition at line 137 of file QChannelCovariance.cc.
References GetCovariance(), and Re().
Referenced by GetMeanCorrelation().
| Diana::QVectorC QChannelCovariance::GetCovariance | ( | int | chI, |
| int | chJ | ||
| ) | const |
get covariance between channel I and J
Definition at line 81 of file QChannelCovariance.cc.
References Channels2Indices(), and fCovariance.
Referenced by GetCorrelation(), GetMeanCorrelation(), GetSubMatrix(), QMultiChannelDecorrelator::Init(), and QMultiChannelDecorrelatorOF::Init().
| Diana::QVectorC QChannelCovariance::GetCovarianceByIndex | ( | int | i, |
| int | j | ||
| ) | const |
Definition at line 93 of file QChannelCovariance.cc.
References fCovariance.
| double QChannelCovariance::GetMeanCorrelation | ( | int | chI, |
| int | chJ, | ||
| int | fmin = -1, |
||
| int | fmax = -1 |
||
| ) | const |
get mean correlation between frequency indices fmin and fmax of the couple (chI,chJ)
Definition at line 154 of file QChannelCovariance.cc.
References GetCorrelation(), GetCovariance(), and Re().
Referenced by DumpMeanCorrelationMatrix(), and GetChannelsByCorrelation().
|
inline |
| int QChannelCovariance::GetNEvents | ( | int | chI, |
| int | chJ | ||
| ) | const |
get number of events of the couple I,J
Definition at line 104 of file QChannelCovariance.cc.
References Channels2Indices(), and fNevents.
Referenced by GetSubMatrix().
|
inline |
get number of frequencies
Definition at line 46 of file QChannelCovariance.hh.
References fCovariance.
Referenced by QMultiChannelDecorrelatorOF::Filter(), and QMultiChannelDecorrelatorOF::Init().
| QChannelCovariance QChannelCovariance::GetSubMatrix | ( | const std::vector< int > & | channels | ) | const |
Get sub matrix of channels.
Definition at line 120 of file QChannelCovariance.cc.
References fCovariance, GetCovariance(), GetNEvents(), SetCovariance(), and SetNEvents().
Referenced by QMultiChannelDecorrelatorOF::Init().
| QChannelCovariance QChannelCovariance::Inverse | ( | ) | const |
|
private |
| void QChannelCovariance::SetChannels | ( | const std::vector< int > & | channels | ) |
set channels
Definition at line 29 of file QChannelCovariance.cc.
References fChannels, fCovariance, and fNevents.
Referenced by QChannelCovariance().
| void QChannelCovariance::SetCovariance | ( | int | chI, |
| int | chJ, | ||
| const Diana::QVectorC & | cov | ||
| ) |
set covariance (size equal to nfreq) of channels I and J
Definition at line 42 of file QChannelCovariance.cc.
References Channels2Indices(), DianaThrow, err, fCovariance, and QERR_SIZE_NOT_MATCH.
Referenced by GetSubMatrix().
| void QChannelCovariance::SetNEvents | ( | int | chI, |
| int | chJ, | ||
| int | nev | ||
| ) |
set number of events of the couple I,J
Definition at line 62 of file QChannelCovariance.cc.
References Channels2Indices(), and fNevents.
Referenced by GetSubMatrix().
| void QChannelCovariance::SetNFreq | ( | size_t | nfreq | ) |
set number of frequencies
Definition at line 23 of file QChannelCovariance.cc.
References Clear(), and fCovariance.
Referenced by QChannelCovariance().
|
private |
map real channel number into channel index
Definition at line 88 of file QChannelCovariance.hh.
Referenced by Channels2Indices(), Clear(), DumpMeanCorrelationMatrix(), GetChannels(), GetNChan(), and SetChannels().
|
private |
Definition at line 85 of file QChannelCovariance.hh.
Referenced by Clear(), Dump(), GetCovariance(), GetCovarianceByIndex(), GetNFreq(), GetSubMatrix(), Inverse(), SetChannels(), SetCovariance(), and SetNFreq().
|
private |
number of events used to build each element of fCovariance
Definition at line 91 of file QChannelCovariance.hh.
Referenced by Clear(), Dump(), GetNEvents(), SetChannels(), and SetNEvents().