A class for correlated Gaussian parameters. More...
#include <CorrelatedGaussianParameters.h>
A class for correlated Gaussian parameters.
This class builds the correlated Gaussian parameters that are specified in the SomeModel.conf file or specified by the user.
Definition at line 23 of file CorrelatedGaussianParameters.h.
Public Member Functions | |
| void | AddPar (ModelParameter &Par_i) |
| A method to add parameters to the list of correlated Gaussian parameters. More... | |
| CorrelatedGaussianParameters () | |
| The default Constructor. More... | |
| CorrelatedGaussianParameters (const CorrelatedGaussianParameters &orig) | |
| The copy constructor. More... | |
| CorrelatedGaussianParameters (std::string name_i) | |
| Constructor. More... | |
| void | DiagonalizePars (gslpp::matrix< double > Corr) |
| Diagonalizes the correlated Gaussian parameters set. More... | |
| gslpp::matrix< double > | getCov () const |
| A get method to access the covariance matrix of the correlated Gaussian parameters. More... | |
| const std::vector< ModelParameter > & | getDiagPars () const |
| A get method to access the diagonalized parameters. More... | |
| std::string | getName () const |
| A get method to access the name of the correlated Gaussian parameters set. More... | |
| std::vector< double > | getOrigParsValue (const std::vector< double > &DiagPars_i) const |
| ModelParameter | getPar (int i) const |
| A get method to access an element of the vector of parameters that are defined in one correlated Gaussian parameters set. More... | |
| const std::vector< ModelParameter > & | getPars () const |
| A get method to access the vector of parameters that are defined in one correlated Gaussian parameters set. More... | |
| bool | isEOF () |
| A method to check if the end of file has been reached. More... | |
| int | ParseCGP (std::vector< ModelParameter > &ModPars, std::string &filename, std::ifstream &ifile, boost::tokenizer< boost::char_separator< char > >::iterator &beg, int lineNo, int rank) |
| The parser for CorrelatedGaussianParameters. More... | |
| virtual | ~CorrelatedGaussianParameters () |
| The default destructor. More... | |
Private Attributes | |
| gslpp::matrix< double > * | Cov |
| The covariance matrix. More... | |
| std::vector< ModelParameter > | DiagPars |
| The eigenvector of the covariance matrix. More... | |
| gslpp::vector< double > * | e |
| The diagonalized parameters. More... | |
| bool | IsEOF |
| std::string | name |
| The name of the correlated Gaussian Parameters set. More... | |
| std::vector< ModelParameter > | Pars |
| A vector of parameters whose correlation will be calculated. More... | |
| gslpp::matrix< double > * | v |
| The rotation matrix form the diagonalized parameters to the original parameters. More... | |
| CorrelatedGaussianParameters::CorrelatedGaussianParameters | ( | std::string | name_i | ) |
| CorrelatedGaussianParameters::CorrelatedGaussianParameters | ( | ) |
| CorrelatedGaussianParameters::CorrelatedGaussianParameters | ( | const CorrelatedGaussianParameters & | orig | ) |
The copy constructor.
Definition at line 33 of file CorrelatedGaussianParameters.cpp.
|
virtual |
The default destructor.
Definition at line 44 of file CorrelatedGaussianParameters.cpp.
| void CorrelatedGaussianParameters::AddPar | ( | ModelParameter & | Par_i | ) |
A method to add parameters to the list of correlated Gaussian parameters.
| Par_i | reference to an object of type ModelParameter |
Definition at line 55 of file CorrelatedGaussianParameters.cpp.
| void CorrelatedGaussianParameters::DiagonalizePars | ( | gslpp::matrix< double > | Corr | ) |
Diagonalizes the correlated Gaussian parameters set.
| Corr | the correlation matrix for the correlated Gaussian parameters set |
Definition at line 60 of file CorrelatedGaussianParameters.cpp.
|
inline |
A get method to access the covariance matrix of the correlated Gaussian parameters.
Definition at line 91 of file CorrelatedGaussianParameters.h.
|
inline |
A get method to access the diagonalized parameters.
Definition at line 100 of file CorrelatedGaussianParameters.h.
|
inline |
A get method to access the name of the correlated Gaussian parameters set.
Definition at line 83 of file CorrelatedGaussianParameters.h.
| std::vector< double > CorrelatedGaussianParameters::getOrigParsValue | ( | const std::vector< double > & | DiagPars_i | ) | const |
Definition at line 104 of file CorrelatedGaussianParameters.cpp.
|
inline |
A get method to access an element of the vector of parameters that are defined in one correlated Gaussian parameters set.
Definition at line 74 of file CorrelatedGaussianParameters.h.
|
inline |
A get method to access the vector of parameters that are defined in one correlated Gaussian parameters set.
Definition at line 64 of file CorrelatedGaussianParameters.h.
|
inline |
A method to check if the end of file has been reached.
Definition at line 129 of file CorrelatedGaussianParameters.h.
| int CorrelatedGaussianParameters::ParseCGP | ( | std::vector< ModelParameter > & | ModPars, |
| std::string & | filename, | ||
| std::ifstream & | ifile, | ||
| boost::tokenizer< boost::char_separator< char > >::iterator & | beg, | ||
| int | lineNo, | ||
| int | rank | ||
| ) |
The parser for CorrelatedGaussianParameters.
| [in] | ModPars | the vector containing the model parameters |
| [in] | filename | the name of the config file being parsed |
| [in] | ifile | the stream containing the config file to be parsed |
| [in] | beg | the iterator that parses a line in the config file |
| [in] | lineNo | the current line number at which the file is being parsed |
| [in] | rank | the rank of the process that is using the parser |
Definition at line 129 of file CorrelatedGaussianParameters.cpp.
|
private |
The covariance matrix.
Definition at line 136 of file CorrelatedGaussianParameters.h.
|
private |
The eigenvector of the covariance matrix.
Definition at line 140 of file CorrelatedGaussianParameters.h.
|
private |
The diagonalized parameters.
Definition at line 139 of file CorrelatedGaussianParameters.h.
|
private |
Definition at line 141 of file CorrelatedGaussianParameters.h.
|
private |
The name of the correlated Gaussian Parameters set.
Definition at line 137 of file CorrelatedGaussianParameters.h.
|
private |
A vector of parameters whose correlation will be calculated.
Definition at line 135 of file CorrelatedGaussianParameters.h.
|
private |
The rotation matrix form the diagonalized parameters to the original parameters.
Definition at line 138 of file CorrelatedGaussianParameters.h.