Jpp
18.6.0-rc.1
the software that should make you happy
|
ROOT Fit. More...
#include <JRootfit.hh>
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. More... | |
typedef JGandalf< JFs_t > ::result_type | result_type |
Public Member Functions | |
JRootfit () | |
Default constructor. More... | |
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. More... | |
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. More... | |
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. More... | |
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. More... | |
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. More... | |
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. More... | |
const JFs_t & | getFunction () const |
Get function. More... | |
size_t | getNumberOfParameters () const |
Get number of parameters. More... | |
size_t | getNumberOfFreeParameters () const |
Get number of free parameters. More... | |
size_t | getN () const |
Get number of data points. More... | |
double | getChi2 () const |
Get chi2. More... | |
int | getNDF () const |
Get number of degrees of freedom. More... | |
double | getValue (size_t i) const |
Get value of parameter at given index. More... | |
double | getError (size_t i) const |
Get error of parameter at given index. 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 | |
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 JRootfit | Fit |
Global fit object. More... | |
static int | MAXIMUM_ITERATIONS = 1000 |
maximal number of iterations More... | |
static double | EPSILON = 1.0e-3 |
maximal distance to minimum 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... | |
Protected Attributes | |
size_t | npx |
number of data points More... | |
double | chi2 |
chi2 More... | |
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. More... | |
Private Attributes | |
struct { | |
typedef JGandalf< JFs_t > ::result_type result_type | |
result_type result | |
} | fit |
Auxiliary data structure for fit functions. More... | |
ROOT Fit.
Definition at line 937 of file JRootfit.hh.
typedef JRootfit_t<JFs_t> JROOT::JRootfit< JFs_t >::result_type |
Definition at line 942 of file JRootfit.hh.
typedef JGandalf<JFs_t>::result_type JROOT::JRootfit< JFs_t >::result_type |
Definition at line 1160 of file JRootfit.hh.
|
inherited |
Data type of fit parameter.
Definition at line 95 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 963 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 986 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 1014 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 1039 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 1070 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 1097 of file JRootfit.hh.
|
private |
|
private |
|
private |
|
private |
|
inlineprivate |
Evaluate fit.
fs | start value |
ls | list of fixed parameters |
data | data |
Definition at line 1135 of file JRootfit.hh.
|
inlineinherited |
|
inlineinherited |
Get number of parameters.
Definition at line 860 of file JRootfit.hh.
|
inlineinherited |
Get number of free parameters.
Definition at line 871 of file JRootfit.hh.
|
inlineinherited |
|
inlineinherited |
|
inlineinherited |
Get number of degrees of freedom.
Definition at line 904 of file JRootfit.hh.
|
inlineinherited |
Get value of parameter at given index.
i | index |
Definition at line 915 of file JRootfit.hh.
|
inlineinherited |
Get error of parameter at given index.
i | index |
Definition at line 926 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 160 of file JGandalf.hh.
|
static |
Global fit object.
Definition at line 1117 of file JRootfit.hh.
|
mutableprivate |
Definition at line 1222 of file JRootfit.hh.
struct { ... } JROOT::JRootfit< JFs_t >::fit |
Auxiliary data structure for fit functions.
|
protectedinherited |
number of data points
Definition at line 840 of file JRootfit.hh.
|
protectedinherited |
chi2
Definition at line 841 of file JRootfit.hh.
|
staticinherited |
maximal number of iterations
maximal number of iterations.
Definition at line 322 of file JGandalf.hh.
|
staticinherited |
maximal distance to minimum
maximal distance to minimum.
Definition at line 323 of file JGandalf.hh.
|
staticinherited |
minimal value control parameter
Definition at line 324 of file JGandalf.hh.
|
staticinherited |
maximal value control parameter
Definition at line 325 of file JGandalf.hh.
|
staticinherited |
multiplication factor control parameter
Definition at line 326 of file JGandalf.hh.
|
staticinherited |
multiplication factor control parameter
Definition at line 327 of file JGandalf.hh.
|
staticinherited |
minimal value diagonal element of Hesse matrix
minimal value diagonal element of matrix
Definition at line 328 of file JGandalf.hh.
|
inherited |
fit parameters
Definition at line 330 of file JGandalf.hh.
|
inherited |
number of iterations
Definition at line 331 of file JGandalf.hh.
|
inherited |
control parameter
Definition at line 332 of file JGandalf.hh.
|
inherited |
value
Definition at line 333 of file JGandalf.hh.
|
inherited |
error
Definition at line 334 of file JGandalf.hh.
|
inherited |
Hesse matrix.
Definition at line 335 of file JGandalf.hh.
|
staticinherited |
debug level (default is off).
Definition at line 45 of file JMessage.hh.