ECCE @ EIC Software
Reference for
ECCE @ EIC
simulation and reconstruction software on GitHub
|
#include <coresoftware/blob/master/offline/packages/HelixHough/FitNewton/ChiSquareGradHessian.h>
Public Member Functions | |
ChiSquareGradHessian (FunctionGradHessian *func_instance, unsigned long int numthreads=1) | |
~ChiSquareGradHessian () | |
void | setPoints (const std::vector< std::vector< double > > &POINTS) |
void | setData (const std::vector< double > &DATA) |
void | setErrors (const std::vector< double > &ERROR) |
void | setFunction (FunctionGradHessian *f) |
void | resetPointsDataErrors () |
bool | calcValGradHessian (const Eigen::VectorXd &x, double &val, Eigen::VectorXd &grad, Eigen::MatrixXd &hessian) |
void | calcValGradHessianThread1 (void *arg) |
bool | calcValGrad (const Eigen::VectorXd &x, double &val, Eigen::VectorXd &grad) |
void | calcValGradThread1 (void *arg) |
void | getCovariance (Eigen::MatrixXd &cov) |
FunctionGradHessian * | Clone () const |
void | setErrorsAreWeights (bool e_a_w) |
void | computeCovariance (const double &val, const Eigen::MatrixXd &hessian) |
Public Member Functions inherited from FitNewton::FunctionGradHessian | |
FunctionGradHessian (unsigned int nparams=1, unsigned int nfixedparams=1) | |
virtual | ~FunctionGradHessian () |
unsigned int | nPars () |
unsigned int | nFixedPars () |
std::vector< double > | getFixedPars () |
void | setFixedPar (unsigned int coor, double val) |
virtual void | rescaleMove (const Eigen::VectorXd &, Eigen::VectorXd &) |
Private Attributes | |
FunctionGradHessian * | func |
const std::vector< std::vector < double > > * | points |
const std::vector< double > * | data |
const std::vector< double > * | data_errors |
const Eigen::VectorXd * | current_eval |
double * | val_output |
Eigen::VectorXd * | grad_output |
Eigen::MatrixXd * | hessian_output |
Eigen::MatrixXd | covariance |
bool | data_has_errors |
bool | errors_are_weights |
std::vector < SeamStress::Seamstress * > * | vssp |
std::vector < SeamStress::Seamstress > | vss |
SeamStress::Pincushion < ChiSquareGradHessian > * | pins |
unsigned long int | nthreads |
unsigned long int | thread_tot |
unsigned long int | niter |
pthread_mutex_t | mutex |
pthread_mutexattr_t | mattr |
Additional Inherited Members | |
Protected Attributes inherited from FitNewton::FunctionGradHessian | |
unsigned int | npars |
unsigned int | nfixedpars |
std::vector< double > | fixedpars |
Definition at line 17 of file ChiSquareGradHessian.h.
View newest version in sPHENIX GitHub at line 17 of file ChiSquareGradHessian.h
FitNewton::ChiSquareGradHessian::ChiSquareGradHessian | ( | FunctionGradHessian * | func_instance, |
unsigned long int | numthreads = 1 |
||
) |
Definition at line 15 of file ChiSquareGradHessian.cpp.
View newest version in sPHENIX GitHub at line 15 of file ChiSquareGradHessian.cpp
References mattr, nthreads, pins, vss, and vssp.
Referenced by Clone().
FitNewton::ChiSquareGradHessian::~ChiSquareGradHessian | ( | ) |
Definition at line 32 of file ChiSquareGradHessian.cpp.
View newest version in sPHENIX GitHub at line 32 of file ChiSquareGradHessian.cpp
|
virtual |
Reimplemented from FitNewton::FunctionGradHessian.
Definition at line 180 of file ChiSquareGradHessian.cpp.
View newest version in sPHENIX GitHub at line 180 of file ChiSquareGradHessian.cpp
References FitNewton::FunctionGradHessian::calcValGrad(), calcValGradThread1(), FitNewton::FunctionGradHessian::Clone(), current_eval, func, grad_output, niter, FitNewton::FunctionGradHessian::npars, nthreads, pins, points, FitNewton::FunctionGradHessian::setFixedPar(), SeamStress::Pincushion< TClass >::sewStraight(), thread_tot, val_output, and x.
|
virtual |
Implements FitNewton::FunctionGradHessian.
Definition at line 77 of file ChiSquareGradHessian.cpp.
View newest version in sPHENIX GitHub at line 77 of file ChiSquareGradHessian.cpp
References FitNewton::FunctionGradHessian::calcValGrad(), calcValGradHessianThread1(), FitNewton::FunctionGradHessian::Clone(), covariance, current_eval, func, grad_output, hessian_output, niter, FitNewton::FunctionGradHessian::npars, nthreads, pins, points, FitNewton::FunctionGradHessian::setFixedPar(), SeamStress::Pincushion< TClass >::sewStraight(), thread_tot, val_output, and x.
Definition at line 105 of file ChiSquareGradHessian.cpp.
View newest version in sPHENIX GitHub at line 105 of file ChiSquareGradHessian.cpp
References FitNewton::FunctionGradHessian::calcValGradHessian(), FitNewton::FunctionGradHessian::Clone(), current_eval, data_has_errors, func, k, niter, FitNewton::FunctionGradHessian::npars, part, points, FitNewton::FunctionGradHessian::setFixedPar(), start(), temp1, thread_tot, and w.
Referenced by calcValGradHessian().
Definition at line 203 of file ChiSquareGradHessian.cpp.
View newest version in sPHENIX GitHub at line 203 of file ChiSquareGradHessian.cpp
References FitNewton::FunctionGradHessian::calcValGrad(), FitNewton::FunctionGradHessian::Clone(), current_eval, data_has_errors, func, niter, FitNewton::FunctionGradHessian::npars, part, points, FitNewton::FunctionGradHessian::setFixedPar(), start(), temp1, thread_tot, and w.
Referenced by calcValGrad().
|
virtual |
Implements FitNewton::FunctionGradHessian.
Definition at line 43 of file ChiSquareGradHessian.cpp.
View newest version in sPHENIX GitHub at line 43 of file ChiSquareGradHessian.cpp
References ChiSquareGradHessian(), data_errors, data_has_errors, func, nthreads, points, setData(), setErrors(), and setPoints().
|
virtual |
Reimplemented from FitNewton::FunctionGradHessian.
Definition at line 53 of file ChiSquareGradHessian.cpp.
View newest version in sPHENIX GitHub at line 53 of file ChiSquareGradHessian.cpp
References covariance, data_errors, data_has_errors, errors_are_weights, FitNewton::FunctionGradHessian::npars, points, and scale.
void FitNewton::ChiSquareGradHessian::getCovariance | ( | Eigen::MatrixXd & | cov | ) |
Definition at line 71 of file ChiSquareGradHessian.cpp.
View newest version in sPHENIX GitHub at line 71 of file ChiSquareGradHessian.cpp
References covariance.
|
inline |
Definition at line 31 of file ChiSquareGradHessian.h.
View newest version in sPHENIX GitHub at line 31 of file ChiSquareGradHessian.h
References data_errors, data_has_errors, and points.
|
inline |
Definition at line 26 of file ChiSquareGradHessian.h.
View newest version in sPHENIX GitHub at line 26 of file ChiSquareGradHessian.h
Referenced by Clone().
|
inline |
Definition at line 27 of file ChiSquareGradHessian.h.
View newest version in sPHENIX GitHub at line 27 of file ChiSquareGradHessian.h
References data_errors, data_has_errors, and Acts::Logging::ERROR.
Referenced by Clone().
|
inline |
Definition at line 44 of file ChiSquareGradHessian.h.
View newest version in sPHENIX GitHub at line 44 of file ChiSquareGradHessian.h
References errors_are_weights.
|
inline |
Definition at line 29 of file ChiSquareGradHessian.h.
View newest version in sPHENIX GitHub at line 29 of file ChiSquareGradHessian.h
|
inline |
Definition at line 25 of file ChiSquareGradHessian.h.
View newest version in sPHENIX GitHub at line 25 of file ChiSquareGradHessian.h
References points.
Referenced by Clone().
|
private |
Definition at line 61 of file ChiSquareGradHessian.h.
View newest version in sPHENIX GitHub at line 61 of file ChiSquareGradHessian.h
Referenced by calcValGradHessian(), computeCovariance(), and getCovariance().
|
private |
Definition at line 55 of file ChiSquareGradHessian.h.
View newest version in sPHENIX GitHub at line 55 of file ChiSquareGradHessian.h
Referenced by calcValGrad(), calcValGradHessian(), calcValGradHessianThread1(), and calcValGradThread1().
|
private |
Definition at line 52 of file ChiSquareGradHessian.h.
View newest version in sPHENIX GitHub at line 52 of file ChiSquareGradHessian.h
|
private |
Definition at line 53 of file ChiSquareGradHessian.h.
View newest version in sPHENIX GitHub at line 53 of file ChiSquareGradHessian.h
Referenced by Clone(), computeCovariance(), resetPointsDataErrors(), and setErrors().
|
private |
Definition at line 63 of file ChiSquareGradHessian.h.
View newest version in sPHENIX GitHub at line 63 of file ChiSquareGradHessian.h
Referenced by calcValGradHessianThread1(), calcValGradThread1(), Clone(), computeCovariance(), resetPointsDataErrors(), and setErrors().
|
private |
Definition at line 64 of file ChiSquareGradHessian.h.
View newest version in sPHENIX GitHub at line 64 of file ChiSquareGradHessian.h
Referenced by computeCovariance(), and setErrorsAreWeights().
|
private |
Definition at line 50 of file ChiSquareGradHessian.h.
View newest version in sPHENIX GitHub at line 50 of file ChiSquareGradHessian.h
Referenced by calcValGrad(), calcValGradHessian(), calcValGradHessianThread1(), calcValGradThread1(), Clone(), and setFunction().
|
private |
Definition at line 58 of file ChiSquareGradHessian.h.
View newest version in sPHENIX GitHub at line 58 of file ChiSquareGradHessian.h
Referenced by calcValGrad(), and calcValGradHessian().
|
private |
Definition at line 59 of file ChiSquareGradHessian.h.
View newest version in sPHENIX GitHub at line 59 of file ChiSquareGradHessian.h
Referenced by calcValGradHessian().
|
private |
Definition at line 74 of file ChiSquareGradHessian.h.
View newest version in sPHENIX GitHub at line 74 of file ChiSquareGradHessian.h
Referenced by ChiSquareGradHessian().
|
private |
Definition at line 73 of file ChiSquareGradHessian.h.
View newest version in sPHENIX GitHub at line 73 of file ChiSquareGradHessian.h
|
private |
Definition at line 72 of file ChiSquareGradHessian.h.
View newest version in sPHENIX GitHub at line 72 of file ChiSquareGradHessian.h
Referenced by calcValGrad(), calcValGradHessian(), calcValGradHessianThread1(), and calcValGradThread1().
|
private |
Definition at line 69 of file ChiSquareGradHessian.h.
View newest version in sPHENIX GitHub at line 69 of file ChiSquareGradHessian.h
Referenced by calcValGrad(), calcValGradHessian(), ChiSquareGradHessian(), Clone(), and ~ChiSquareGradHessian().
|
private |
Definition at line 68 of file ChiSquareGradHessian.h.
View newest version in sPHENIX GitHub at line 68 of file ChiSquareGradHessian.h
Referenced by calcValGrad(), calcValGradHessian(), ChiSquareGradHessian(), and ~ChiSquareGradHessian().
|
private |
Definition at line 51 of file ChiSquareGradHessian.h.
View newest version in sPHENIX GitHub at line 51 of file ChiSquareGradHessian.h
Referenced by calcValGrad(), calcValGradHessian(), calcValGradHessianThread1(), calcValGradThread1(), Clone(), computeCovariance(), resetPointsDataErrors(), and setPoints().
|
private |
Definition at line 71 of file ChiSquareGradHessian.h.
View newest version in sPHENIX GitHub at line 71 of file ChiSquareGradHessian.h
Referenced by calcValGrad(), calcValGradHessian(), calcValGradHessianThread1(), and calcValGradThread1().
|
private |
Definition at line 57 of file ChiSquareGradHessian.h.
View newest version in sPHENIX GitHub at line 57 of file ChiSquareGradHessian.h
Referenced by calcValGrad(), and calcValGradHessian().
|
private |
Definition at line 67 of file ChiSquareGradHessian.h.
View newest version in sPHENIX GitHub at line 67 of file ChiSquareGradHessian.h
Referenced by ChiSquareGradHessian(), and ~ChiSquareGradHessian().
|
private |
Definition at line 66 of file ChiSquareGradHessian.h.
View newest version in sPHENIX GitHub at line 66 of file ChiSquareGradHessian.h
Referenced by ChiSquareGradHessian(), and ~ChiSquareGradHessian().