EIC Software
Reference for
EIC
simulation and reconstruction software on GitHub
|
#include <fun4all_coresoftware/blob/master/offline/packages/HelixHough/FitNewton/NewtonMinimizerGradHessian.h>
Public Member Functions | |
NewtonMinimizerGradHessian () | |
~NewtonMinimizerGradHessian () | |
void | setFunction (FunctionGradHessian *func) |
bool | minimize (const Eigen::VectorXd &start_point, Eigen::VectorXd &min_point, double tol=0x1.0p-30, unsigned int max_iter=1024, double abs_tol=0.) |
bool | findSaddlePoint (const Eigen::VectorXd &start_point, Eigen::VectorXd &min_point, double tol=0x1.0p-30, unsigned int max_iter=1024, double abs_tol=0.) |
void | fixParameter (unsigned int par) |
void | unfixParameter (unsigned int par) |
Private Member Functions | |
bool | zoom (const double &wolfe1, const double &wolfe2, double &lo, double &hi, Eigen::VectorXd &try_grad, Eigen::VectorXd &direction, double &grad0_dir, double &val0, double &val_lo, Eigen::VectorXd &init_params, Eigen::VectorXd &try_params, unsigned int max_iter, double &result) |
bool | lineSearch (double &alpha, const double &wolfe1, const double &wolfe2, Eigen::VectorXd &try_grad, Eigen::VectorXd &direction, double &grad0_dir, double &val0, Eigen::VectorXd &init_params, Eigen::VectorXd &try_params, const double &precision, const double &accuracy, unsigned int max_iter, double &result) |
Private Attributes | |
FunctionGradHessian * | function |
std::vector< int > | fixparameter |
Definition at line 11 of file NewtonMinimizerGradHessian.h.
View newest version in sPHENIX GitHub at line 11 of file NewtonMinimizerGradHessian.h
FitNewton::NewtonMinimizerGradHessian::NewtonMinimizerGradHessian | ( | ) |
Definition at line 18 of file NewtonMinimizerGradHessian.cpp.
View newest version in sPHENIX GitHub at line 18 of file NewtonMinimizerGradHessian.cpp
FitNewton::NewtonMinimizerGradHessian::~NewtonMinimizerGradHessian | ( | ) |
Definition at line 24 of file NewtonMinimizerGradHessian.cpp.
View newest version in sPHENIX GitHub at line 24 of file NewtonMinimizerGradHessian.cpp
bool FitNewton::NewtonMinimizerGradHessian::findSaddlePoint | ( | const Eigen::VectorXd & | start_point, |
Eigen::VectorXd & | min_point, | ||
double | tol = 0x1.0p-30 , |
||
unsigned int | max_iter = 1024 , |
||
double | abs_tol = 0. |
||
) |
Definition at line 215 of file NewtonMinimizerGradHessian.cpp.
View newest version in sPHENIX GitHub at line 215 of file NewtonMinimizerGradHessian.cpp
References c1, c2, FitNewton::SquareGradient::calcValGrad(), FitNewton::FunctionGradHessian::calcValGradHessian(), FitNewton::FunctionGradHessian::computeCovariance(), FitNewton::FunctionGradHessian::rescaleMove(), boost::swap(), and value.
void FitNewton::NewtonMinimizerGradHessian::fixParameter | ( | unsigned int | par | ) |
Definition at line 38 of file NewtonMinimizerGradHessian.cpp.
View newest version in sPHENIX GitHub at line 38 of file NewtonMinimizerGradHessian.cpp
|
private |
Definition at line 117 of file NewtonMinimizerGradHessian.cpp.
View newest version in sPHENIX GitHub at line 117 of file NewtonMinimizerGradHessian.cpp
References starlightConstants::alpha, temp1, and temp2.
bool FitNewton::NewtonMinimizerGradHessian::minimize | ( | const Eigen::VectorXd & | start_point, |
Eigen::VectorXd & | min_point, | ||
double | tol = 0x1.0p-30 , |
||
unsigned int | max_iter = 1024 , |
||
double | abs_tol = 0. |
||
) |
Definition at line 345 of file NewtonMinimizerGradHessian.cpp.
View newest version in sPHENIX GitHub at line 345 of file NewtonMinimizerGradHessian.cpp
References c1, c2, FitNewton::FunctionGradHessian::nPars(), boost::swap(), and value.
Referenced by VertexFitFunc::calcValGradHessian(), and main().
void FitNewton::NewtonMinimizerGradHessian::setFunction | ( | FunctionGradHessian * | func | ) |
Definition at line 30 of file NewtonMinimizerGradHessian.cpp.
View newest version in sPHENIX GitHub at line 30 of file NewtonMinimizerGradHessian.cpp
References func, and FitNewton::FunctionGradHessian::nPars().
Referenced by VertexFitFunc::calcValGradHessian(), and main().
void FitNewton::NewtonMinimizerGradHessian::unfixParameter | ( | unsigned int | par | ) |
Definition at line 47 of file NewtonMinimizerGradHessian.cpp.
View newest version in sPHENIX GitHub at line 47 of file NewtonMinimizerGradHessian.cpp
|
private |
Definition at line 56 of file NewtonMinimizerGradHessian.cpp.
View newest version in sPHENIX GitHub at line 56 of file NewtonMinimizerGradHessian.cpp
References starlightConstants::alpha, temp1, and temp2.
|
private |
Definition at line 30 of file NewtonMinimizerGradHessian.h.
View newest version in sPHENIX GitHub at line 30 of file NewtonMinimizerGradHessian.h
|
private |
Definition at line 26 of file NewtonMinimizerGradHessian.h.
View newest version in sPHENIX GitHub at line 26 of file NewtonMinimizerGradHessian.h