#include <LeastSquares.h>
Public Member Functions | |
void | add (const std::vector< double > &values, double dest, double weight=1.0) |
void | add (const LeastSquares &other, double weight=1.0) |
void | calculate () |
const TMatrixDSym & | getCoefficients () const |
double | getConstant () const |
const TMatrixDSym & | getCorrelations () const |
const TMatrixDSym & | getCovariance () const |
std::vector< double > | getMeans () const |
const TMatrixD & | getRotation () |
unsigned int | getSize () const |
std::vector< double > | getWeights () const |
LeastSquares (unsigned int n) | |
void | load (XERCES_CPP_NAMESPACE_QUALIFIER DOMElement *elem) |
XERCES_CPP_NAMESPACE_QUALIFIER DOMElement * | save (XERCES_CPP_NAMESPACE_QUALIFIER DOMDocument *doc) const |
virtual | ~LeastSquares () |
Static Public Member Functions | |
static TVectorD | solveFisher (const TMatrixDSym &coeffs) |
static TMatrixD | solveRotation (const TMatrixDSym &covar, TVectorD &trace) |
Private Attributes | |
TMatrixDSym | coeffs |
TMatrixDSym | corr |
TMatrixDSym | covar |
const unsigned int | n |
TMatrixD | rotation |
TVectorD | trace |
TVectorD | variance |
TVectorD | weights |
Definition at line 14 of file LeastSquares.h.
PhysicsTools::LeastSquares::LeastSquares | ( | unsigned int | n | ) |
Definition at line 22 of file LeastSquares.cc.
|
virtual |
Definition at line 28 of file LeastSquares.cc.
void PhysicsTools::LeastSquares::add | ( | const std::vector< double > & | values, |
double | dest, | ||
double | weight = 1.0 |
||
) |
Definition at line 32 of file LeastSquares.cc.
References coeffs, i, j, n, and histoStyle::weight.
void PhysicsTools::LeastSquares::add | ( | const LeastSquares & | other, |
double | weight = 1.0 |
||
) |
Definition at line 55 of file LeastSquares.cc.
References coeffs, getSize(), and n.
void PhysicsTools::LeastSquares::calculate | ( | ) |
Definition at line 87 of file LeastSquares.cc.
References trackerHits::c, coeffs, corr, covar, i, j, N, n, rotation, solveFisher(), solveRotation(), mathSSE::sqrt(), trace, findQualityFiles::v, variance, w, and weights.
|
inline |
double PhysicsTools::LeastSquares::getConstant | ( | ) | const |
Definition at line 139 of file LeastSquares.cc.
|
inline |
|
inline |
std::vector< double > PhysicsTools::LeastSquares::getMeans | ( | ) | const |
Definition at line 127 of file LeastSquares.cc.
References coeffs, i, N, n, and python.entryComment::results.
|
inline |
|
inline |
std::vector< double > PhysicsTools::LeastSquares::getWeights | ( | ) | const |
Definition at line 116 of file LeastSquares.cc.
References i, n, python.entryComment::results, and weights.
void PhysicsTools::LeastSquares::load | ( | XERCES_CPP_NAMESPACE_QUALIFIER DOMElement * | elem | ) |
Definition at line 280 of file LeastSquares.cc.
References trackerHits::c, coeffs, corr, covar, HTMLExport::elem(), edm::hlt::Exception, i, PhysicsTools::loadMatrix(), PhysicsTools::loadVector(), N, n, python.Node::node, rotation, mathSSE::sqrt(), tmp, trace, findQualityFiles::v, variance, BeamSplash_cfg::version, w, and weights.
DOMElement * PhysicsTools::LeastSquares::save | ( | XERCES_CPP_NAMESPACE_QUALIFIER DOMDocument * | doc | ) | const |
Definition at line 392 of file LeastSquares.cc.
References coeffs, corr, covar, n, dbtoconf::root, rotation, PhysicsTools::saveMatrix(), PhysicsTools::saveVector(), trace, variance, and weights.
|
static |
Definition at line 64 of file LeastSquares.cc.
References coeffs, n, convertSQLiteXML::ok, and tmp.
Referenced by calculate().
|
static |
|
private |
Definition at line 44 of file LeastSquares.h.
Referenced by add(), calculate(), getCoefficients(), getMeans(), load(), save(), and solveFisher().
|
private |
Definition at line 46 of file LeastSquares.h.
Referenced by calculate(), getCorrelations(), load(), and save().
|
private |
Definition at line 45 of file LeastSquares.h.
Referenced by calculate(), getCovariance(), load(), and save().
|
private |
Definition at line 51 of file LeastSquares.h.
Referenced by add(), calculate(), getConstant(), getMeans(), getSize(), getWeights(), load(), save(), and solveFisher().
|
private |
Definition at line 47 of file LeastSquares.h.
Referenced by calculate(), getRotation(), load(), and save().
|
private |
Definition at line 50 of file LeastSquares.h.
Referenced by calculate(), load(), and save().
|
private |
Definition at line 49 of file LeastSquares.h.
Referenced by calculate(), load(), and save().
|
private |
Definition at line 48 of file LeastSquares.h.
Referenced by calculate(), getConstant(), getWeights(), load(), and save().