Jpp 19.3.0-rc.1
the software that should make you happy
|
ROOT Fit. More...
#include <JRootfit.hh>
Classes | |
struct | function_type |
Auxiliary data structure for fit functions. More... | |
Public Types | |
typedef JRootfit_t< JFs_t > | result_type |
typedef JFIT_LOCAL::JTypedef_t< JModel_t >::parameter_type | parameter_type |
Data type of fit parameter. | |
Public Member Functions | |
JRootfit () | |
Default constructor. | |
template<class T > | |
const result_type & | operator() (const TH1 &h1, const JFs_t &f1, const T &type, const index_list &ls=index_list(), const range_type &X=range_type()) |
Fit. | |
template<class T > | |
const result_type & | operator() (TH1 *h1, const JFs_t &f1, const T &type, const index_list &ls=index_list(), const range_type &X=range_type()) |
Fit. | |
template<class T > | |
const result_type & | operator() (const TH2 &h2, const JFs_t &f2, const T &type, const index_list &ls=index_list(), const range_type &X=range_type(), const range_type &Y=range_type()) |
Fit. | |
template<class T > | |
const result_type & | operator() (TH2 *h2, const JFs_t &f2, const T &type, const index_list &ls=index_list(), const range_type &X=range_type(), const range_type &Y=range_type()) |
Fit. | |
template<class T > | |
const result_type & | operator() (const TH3 &h3, const JFs_t &f3, const T &type, const index_list &ls=index_list(), const range_type &X=range_type(), const range_type &Y=range_type(), const range_type &Z=range_type()) |
Fit. | |
template<class T > | |
const result_type & | operator() (TH3 *h3, const JFs_t &f3, const T &type, const index_list &ls=index_list(), const range_type &X=range_type(), const range_type &Y=range_type(), const range_type &Z=range_type()) |
Fit. | |
const JFs_t & | getFunction () const |
Get function. | |
size_t | getNumberOfParameters () const |
Get number of parameters. | |
size_t | getNumberOfFreeParameters () const |
Get number of free parameters. | |
size_t | getN () const |
Get number of data points. | |
double | getChi2 () const |
Get chi2. | |
int | getNDF () const |
Get number of degrees of freedom. | |
double | getValue (size_t i) const |
Get value of parameter at given index. | |
double | getError (size_t i) const |
Get error of parameter at given index. | |
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. | |
Public Attributes | |
std::vector< parameter_type > | parameters |
fit parameters | |
int | numberOfIterations |
number of iterations | |
double | lambda |
control parameter | |
JModel_t | value |
value | |
JModel_t | error |
error | |
JMATH::JMatrixNS | V |
Hesse matrix. | |
Static Public Attributes | |
static JRootfit | Fit |
Global fit object. | |
static int | MAXIMUM_ITERATIONS = 1000 |
maximal number of iterations | |
static double | EPSILON = 1.0e-3 |
maximal distance to minimum | |
static bool | EPSILON_ABSOLUTE = false |
set epsilon to absolute difference instead of relative | |
static double | LAMBDA_MIN = 0.01 |
minimal value control parameter | |
static double | LAMBDA_MAX = 100.0 |
maximal value control parameter | |
static double | LAMBDA_UP = 10.0 |
multiplication factor control parameter | |
static double | LAMBDA_DOWN = 10.0 |
multiplication factor control parameter | |
static double | PIVOT = std::numeric_limits<double>::epsilon() |
minimal value diagonal element of Hesse matrix | |
static int | debug = 0 |
debug level (default is off). | |
Protected Attributes | |
size_t | npx |
number of data points | |
double | chi2 |
chi2 | |
Private Member Functions | |
size_t | getNumberOfFreeParameters () |
size_t | getN () |
double | getChi2 () |
int | getNDF () |
template<class T > | |
const result_type & | eval (const JFs_t &fs, const index_list &ls, const data_type< T > &data) |
Evaluate fit. | |
void | reset () |
Reset current parameters. | |
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. | |
template<class JFunction_t > | |
void | update (const JFunction_t &fit) |
Termination method to update current parameters. | |
Static Private Member Functions | |
static double | get (const JModel_t &model, double JModel_t::*parameter) |
Read/write access to parameter value by data member. | |
static double & | get (JModel_t &model, double JModel_t::*parameter) |
Read/write access to parameter value by data member. | |
static double | get (const JModel_t &model, const size_t index) |
Read/write access to parameter value by index. | |
static double & | get (JModel_t &model, const size_t index) |
Read/write access to parameter value by index. | |
static double | get (const JModel_t &model, const int index) |
Read/write access to parameter value by index. | |
static double & | get (JModel_t &model, const int index) |
Read/write access to parameter value by index. | |
Private Attributes | ||
const struct JROOT::JRootfit::function_type | fit | |
std::vector< double > | h | |
JMATH::JVectorND | x | |
struct { | ||
result_type result | ||
} | current | |
struct { | ||
JModel_t value | ||
result_type result | ||
} | previous | |
ROOT Fit.
Definition at line 938 of file JRootfit.hh.
JRootfit_t<JFs_t> JROOT::JRootfit< JFs_t >::result_type |
Definition at line 943 of file JRootfit.hh.
|
inherited |
Data type of fit parameter.
Definition at line 96 of file JGandalf.hh.
|
inline |
|
inline |
Fit.
h1 | histogram |
f1 | start value |
type | type of data for histogram unpacking |
ls | list of fixed parameters |
X | fit range |
Definition at line 964 of file JRootfit.hh.
|
inline |
Fit.
The fitted function is added to the input histogram.
h1 | pointer to histogram |
f1 | start value |
type | type of data for histogram unpacking |
ls | list of fixed parameters |
X | fit range |
Definition at line 987 of file JRootfit.hh.
|
inline |
Fit.
h2 | histogram |
f2 | start value |
type | type of data for histogram unpacking |
ls | list of fixed parameters |
X | fit range |
Y | fit range |
Definition at line 1015 of file JRootfit.hh.
|
inline |
Fit.
The fitted function is added to the input histogram.
h2 | pointer to histogram |
f2 | start value |
type | type of data for histogram unpacking |
ls | list of fixed parameters |
X | fit range |
Y | fit range |
Definition at line 1040 of file JRootfit.hh.
|
inline |
Fit.
h3 | histogram |
f3 | start value |
type | type of data for histogram unpacking |
ls | list of fixed parameters |
X | fit range |
Y | fit range |
Z | fit range |
Definition at line 1071 of file JRootfit.hh.
|
inline |
Fit.
The fitted function is added to the input histogram.
h3 | pointer to histogram |
f3 | start value |
type | type of data for histogram unpacking |
ls | list of fixed parameters |
X | fit range |
Y | fit range |
Z | fit range |
Definition at line 1098 of file JRootfit.hh.
|
private |
|
private |
|
private |
|
private |
|
inlineprivate |
Evaluate fit.
fs | start value |
ls | list of fixed parameters |
data | data |
Definition at line 1136 of file JRootfit.hh.
|
inlineinherited |
|
inlineinherited |
Get number of parameters.
Definition at line 861 of file JRootfit.hh.
|
inlineinherited |
Get number of free parameters.
Definition at line 872 of file JRootfit.hh.
|
inlineinherited |
|
inlineinherited |
|
inlineinherited |
Get number of degrees of freedom.
Definition at line 905 of file JRootfit.hh.
|
inlineinherited |
Get value of parameter at given index.
i | index |
Definition at line 916 of file JRootfit.hh.
|
inlineinherited |
Get error of parameter at given index.
i | index |
Definition at line 927 of file JRootfit.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 161 of file JGandalf.hh.
|
inlineprivateinherited |
Reset current parameters.
Definition at line 350 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 370 of file JGandalf.hh.
|
inlineprivateinherited |
Termination method to update current parameters.
fit | fit function |
Definition at line 396 of file JGandalf.hh.
|
inlinestaticprivateinherited |
Read/write access to parameter value by data member.
model | model |
parameter | parameter |
Definition at line 413 of file JGandalf.hh.
|
inlinestaticprivateinherited |
Read/write access to parameter value by data member.
model | model |
parameter | parameter |
Definition at line 426 of file JGandalf.hh.
|
inlinestaticprivateinherited |
Read/write access to parameter value by index.
model | model |
index | index |
Definition at line 439 of file JGandalf.hh.
|
inlinestaticprivateinherited |
Read/write access to parameter value by index.
model | model |
index | index |
Definition at line 452 of file JGandalf.hh.
|
inlinestaticprivateinherited |
Read/write access to parameter value by index.
model | model |
index | index |
Definition at line 465 of file JGandalf.hh.
|
inlinestaticprivateinherited |
Read/write access to parameter value by index.
model | model |
index | index |
Definition at line 478 of file JGandalf.hh.
|
static |
Global fit object.
Definition at line 1118 of file JRootfit.hh.
|
private |
|
protectedinherited |
number of data points
Definition at line 841 of file JRootfit.hh.
|
protectedinherited |
chi2
Definition at line 842 of file JRootfit.hh.
|
staticinherited |
maximal number of iterations
maximal number of iterations.
Definition at line 330 of file JGandalf.hh.
|
staticinherited |
maximal distance to minimum
maximal distance to minimum.
Definition at line 331 of file JGandalf.hh.
|
staticinherited |
set epsilon to absolute difference instead of relative
set epsilon to absolute difference instead of relative.
Definition at line 332 of file JGandalf.hh.
|
staticinherited |
minimal value control parameter
Definition at line 333 of file JGandalf.hh.
|
staticinherited |
maximal value control parameter
Definition at line 334 of file JGandalf.hh.
|
staticinherited |
multiplication factor control parameter
Definition at line 335 of file JGandalf.hh.
|
staticinherited |
multiplication factor control parameter
Definition at line 336 of file JGandalf.hh.
|
staticinherited |
minimal value diagonal element of Hesse matrix
minimal value diagonal element of matrix
Definition at line 337 of file JGandalf.hh.
|
inherited |
fit parameters
Definition at line 339 of file JGandalf.hh.
|
inherited |
number of iterations
Definition at line 340 of file JGandalf.hh.
|
inherited |
control parameter
Definition at line 341 of file JGandalf.hh.
|
inherited |
value
Definition at line 342 of file JGandalf.hh.
|
inherited |
error
Definition at line 343 of file JGandalf.hh.
|
inherited |
Hesse matrix.
Definition at line 344 of file JGandalf.hh.
|
privateinherited |
Definition at line 483 of file JGandalf.hh.
|
privateinherited |
Definition at line 484 of file JGandalf.hh.
|
inherited |
Definition at line 487 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.