ROOT
git-r3/HEAD
Reference Guide
Loading...
Searching...
No Matches
TF1Helper.h
Go to the documentation of this file.
1
// @(#)root/hist:$Id$
2
// Author: Lorenzo Moneta 12/06/07
3
4
/**********************************************************************
5
* *
6
* Copyright (c) 2007 LCG ROOT Math Team, CERN/PH-SFT *
7
* *
8
* *
9
**********************************************************************/
10
11
// helper functions used internally by TF1
12
13
#ifndef ROOT_TF1Helper
14
#define ROOT_TF1Helper
15
16
#include "
TF1.h
"
17
18
namespace
ROOT
{
19
20
namespace
TF1Helper
{
21
22
double
IntegralError
(TF1 * func,
int
dim
,
const
double
*
a
,
const
double
*
b
,
const
double
* params,
const
double
* covmat,
double
eps);
23
24
/**
25
function class representing the derivative with respect a parameter of a given TF1
26
*/
27
class
TGradientParFunction
{
28
29
public
:
30
31
TGradientParFunction
(
int
ipar,
TF1
*
f
) :
32
fPar
(ipar),
33
fFunc
(
f
)
34
{}
35
36
double
operator()
(
double
*
x
,
double
*)
const
37
{
38
// evaluate gradient vector of functions at point x
39
return
fFunc
->GradientPar(
fPar
,
x
);
40
}
41
42
private
:
43
44
unsigned
int
fPar
;
45
mutable
TF1
*
fFunc
;
46
};
47
48
49
}
// end namespace TF1Helper
50
51
}
// end namespace TF1
52
53
#endif
b
#define b(i)
Definition
RSha256.hxx:100
f
#define f(i)
Definition
RSha256.hxx:104
a
#define a(i)
Definition
RSha256.hxx:99
TF1.h
ROOT::TF1Helper::TGradientParFunction::fPar
unsigned int fPar
Definition
TF1Helper.h:44
ROOT::TF1Helper::TGradientParFunction::operator()
double operator()(double *x, double *) const
Definition
TF1Helper.h:36
ROOT::TF1Helper::TGradientParFunction::TGradientParFunction
TGradientParFunction(int ipar, TF1 *f)
Definition
TF1Helper.h:31
ROOT::TF1Helper::TGradientParFunction::fFunc
TF1 * fFunc
Definition
TF1Helper.h:45
TF1
Definition
TF1.h:182
x
Double_t x[n]
Definition
legend1.C:17
ROOT::Internal::dim
UInt_t dim
Definition
TTreeProxyGenerator.cxx:941
ROOT::TF1Helper
Definition
TF1Helper.cxx:33
ROOT::TF1Helper::IntegralError
double IntegralError(TF1 *func, Int_t ndim, const double *a, const double *b, const double *params, const double *covmat, double epsilon)
Definition
TF1Helper.cxx:39
ROOT
Definition
EExecutionPolicy.hxx:4
hist
hist
src
TF1Helper.h
ROOTgit-r3/HEAD - Reference Guide Generated on
(GVA Time) using Doxygen 1.16.1