Jpp
master_rocky
the software that should make you happy
|
#include <JPoint4DRegressor.hh>
Public Types | |
typedef JGandalf< JPoint4D > | minimiser_type |
typedef JRegressor< JPoint4D, JGandalf > | regressor_type |
typedef minimiser_type::result_type | result_type |
typedef JFIT_LOCAL::JTypedef_t< JModel_t >::parameter_type | parameter_type |
Data type of fit parameter. More... | |
Public Member Functions | |
JRegressor (double sigma) | |
Constructor. More... | |
template<class JHit_t > | |
result_type | operator() (const JPoint4D &vx, const JHit_t &hit) const |
result_type | operator() (const JPoint4D &value, T __begin, T __end) |
Global fit. More... | |
template<class JFunction_t , class T , class ... Args> | |
result_type | operator() (const JFunction_t &fit, T __begin, T __end, Args ...args) |
Multi-dimensional fit of multiple data sets. More... | |
Public Attributes | |
JLANG::JSharedPointer< JMEstimator > | estimator |
M-Estimator function. More... | |
double | sigma |
Time resolution [ns]. More... | |
std::vector< parameter_type > | parameters |
fit parameters More... | |
int | numberOfIterations |
number of iterations More... | |
double | lambda |
control parameter More... | |
JModel_t | value |
value More... | |
JModel_t | error |
error More... | |
JMATH::JMatrixNS | V |
Hesse matrix. More... | |
Static Public Attributes | |
static int | MAXIMUM_ITERATIONS = 1000 |
maximal number of iterations More... | |
static double | EPSILON = 1.0e-3 |
maximal distance to minimum More... | |
static bool | EPSILON_ABSOLUTE = false |
set epsilon to absolute difference instead of relative More... | |
static double | LAMBDA_MIN = 0.01 |
minimal value control parameter More... | |
static double | LAMBDA_MAX = 100.0 |
maximal value control parameter More... | |
static double | LAMBDA_UP = 10.0 |
multiplication factor control parameter More... | |
static double | LAMBDA_DOWN = 10.0 |
multiplication factor control parameter More... | |
static double | PIVOT = std::numeric_limits<double>::epsilon() |
minimal value diagonal element of Hesse matrix More... | |
static int | debug = 0 |
debug level (default is off). More... | |
Private Member Functions | |
void | reset () |
Reset current parameters. More... | |
template<class JFunction_t , class T , class ... Args> | |
void | update (const JFunction_t &fit, T __begin, T __end, Args ...args) |
Recursive method to update current parameters. More... | |
template<class JFunction_t > | |
void | update (const JFunction_t &fit) |
Termination method to update current parameters. More... | |
Static Private Member Functions | |
static double | get (const JModel_t &model, double JModel_t::*parameter) |
Read/write access to parameter value by data member. More... | |
static double & | get (JModel_t &model, double JModel_t::*parameter) |
Read/write access to parameter value by data member. More... | |
static double | get (const JModel_t &model, const size_t index) |
Read/write access to parameter value by index. More... | |
static double & | get (JModel_t &model, const size_t index) |
Read/write access to parameter value by index. More... | |
static double | get (const JModel_t &model, const int index) |
Read/write access to parameter value by index. More... | |
static double & | get (JModel_t &model, const int index) |
Read/write access to parameter value by index. More... | |
Private Attributes | |
std::vector< double > | h |
JMATH::JVectorND | x |
struct { | |
result_type result | |
} | current |
struct { | |
JModel_t value | |
result_type result | |
} | previous |
Definition at line 67 of file JPoint4DRegressor.hh.
|
inherited |
Definition at line 80 of file JRegressor.hh.
|
inherited |
Definition at line 81 of file JRegressor.hh.
|
inherited |
Definition at line 82 of file JRegressor.hh.
|
inherited |
Data type of fit parameter.
Definition at line 95 of file JGandalf.hh.
|
inline |
Constructor.
Definition at line 75 of file JPoint4DRegressor.hh.
|
inline |
Definition at line 89 of file JPoint4DRegressor.hh.
|
inlineinherited |
Global fit.
value | start value |
__begin | begin of data set |
__end | end of data set |
Definition at line 94 of file JRegressor.hh.
|
inlineinherited |
Multi-dimensional fit of multiple data sets.
The fit function should return the chi2 as well as the partial derivatives for the current value of the model and a given data point.
fit | fit function |
__begin | begin of data |
__end | end of data |
args | optional data |
Definition at line 160 of file JGandalf.hh.
|
inlineprivateinherited |
Reset current parameters.
Definition at line 349 of file JGandalf.hh.
|
inlineprivateinherited |
Recursive method to update current parameters.
fit | fit function |
__begin | begin of data |
__end | end of data |
args | optional data |
Definition at line 369 of file JGandalf.hh.
|
inlineprivateinherited |
Termination method to update current parameters.
fit | fit function |
Definition at line 395 of file JGandalf.hh.
|
inlinestaticprivateinherited |
Read/write access to parameter value by data member.
model | model |
parameter | parameter |
Definition at line 412 of file JGandalf.hh.
|
inlinestaticprivateinherited |
Read/write access to parameter value by data member.
model | model |
parameter | parameter |
Definition at line 425 of file JGandalf.hh.
|
inlinestaticprivateinherited |
Read/write access to parameter value by index.
model | model |
index | index |
Definition at line 438 of file JGandalf.hh.
|
inlinestaticprivateinherited |
Read/write access to parameter value by index.
model | model |
index | index |
Definition at line 451 of file JGandalf.hh.
|
inlinestaticprivateinherited |
Read/write access to parameter value by index.
model | model |
index | index |
Definition at line 464 of file JGandalf.hh.
|
inlinestaticprivateinherited |
Read/write access to parameter value by index.
model | model |
index | index |
Definition at line 477 of file JGandalf.hh.
JLANG::JSharedPointer<JMEstimator> JFIT::JRegressor< JPoint4D, JGandalf >::estimator |
M-Estimator function.
Definition at line 110 of file JPoint4DRegressor.hh.
double JFIT::JRegressor< JPoint4D, JGandalf >::sigma |
Time resolution [ns].
Definition at line 111 of file JPoint4DRegressor.hh.
|
staticinherited |
maximal number of iterations
maximal number of iterations.
Definition at line 329 of file JGandalf.hh.
|
staticinherited |
maximal distance to minimum
maximal distance to minimum.
Definition at line 330 of file JGandalf.hh.
|
staticinherited |
set epsilon to absolute difference instead of relative
set epsilon to absolute difference instead of relative.
Definition at line 331 of file JGandalf.hh.
|
staticinherited |
minimal value control parameter
Definition at line 332 of file JGandalf.hh.
|
staticinherited |
maximal value control parameter
Definition at line 333 of file JGandalf.hh.
|
staticinherited |
multiplication factor control parameter
Definition at line 334 of file JGandalf.hh.
|
staticinherited |
multiplication factor control parameter
Definition at line 335 of file JGandalf.hh.
|
staticinherited |
minimal value diagonal element of Hesse matrix
minimal value diagonal element of matrix
Definition at line 336 of file JGandalf.hh.
|
inherited |
fit parameters
Definition at line 338 of file JGandalf.hh.
|
inherited |
number of iterations
Definition at line 339 of file JGandalf.hh.
|
inherited |
control parameter
Definition at line 340 of file JGandalf.hh.
|
inherited |
value
Definition at line 341 of file JGandalf.hh.
|
inherited |
error
Definition at line 342 of file JGandalf.hh.
|
inherited |
Hesse matrix.
Definition at line 343 of file JGandalf.hh.
|
privateinherited |
Definition at line 482 of file JGandalf.hh.
|
privateinherited |
Definition at line 483 of file JGandalf.hh.
|
inherited |
Definition at line 486 of file JGandalf.hh.
struct { ... } JFIT::JGandalf< JModel_t >::current |
struct { ... } JFIT::JGandalf< JModel_t >::previous |
|
staticinherited |
debug level (default is off).
Definition at line 45 of file JMessage.hh.