ROOT
master
Reference Guide
Loading...
Searching...
No Matches
VariableMetricEDMEstimator.cxx
Go to the documentation of this file.
1
// @(#)root/minuit2:$Id$
2
// Authors: M. Winkler, F. James, L. Moneta, A. Zsenei 2003-2005
3
4
/**********************************************************************
5
* *
6
* Copyright (c) 2005 LCG ROOT Math team, CERN/PH-SFT *
7
* *
8
**********************************************************************/
9
10
#include "
Minuit2/VariableMetricEDMEstimator.h
"
11
#include "
Minuit2/FunctionGradient.h
"
12
#include "
Minuit2/MinimumError.h
"
13
14
namespace
ROOT
{
15
16
namespace
Minuit2 {
17
18
double
similarity
(
const
LAVector &,
const
LASymMatrix &);
19
20
double
VariableMetricEDMEstimator::Estimate
(
const
FunctionGradient
&
g
,
const
MinimumError
&
e
)
const
21
{
22
// estimate the edm (expected distance to the minimum) = 0.5 * g^T V g (where V is the error matrix, inverse of
23
// Hessian)
24
// edm = 0.5 * dx^T H dx where V = H^-1 and dx is x distance from minimum
25
// now since dx = - V g -> edm = 0.5 g^T V g
26
27
if
(
e
.InvHessian().size() == 1)
28
return
0.5 *
g
.Grad()(0) *
g
.Grad()(0) *
e
.InvHessian()(0, 0);
29
30
double
rho =
similarity
(
g
.Grad(),
e
.InvHessian());
31
return
0.5 * rho;
32
}
33
34
}
// namespace Minuit2
35
36
}
// namespace ROOT
FunctionGradient.h
MinimumError.h
g
#define g(i)
Definition
RSha256.hxx:105
e
#define e(i)
Definition
RSha256.hxx:103
VariableMetricEDMEstimator.h
ROOT::Minuit2::FunctionGradient
Definition
FunctionGradient.h:21
ROOT::Minuit2::MinimumError
MinimumError keeps the inv.
Definition
MinimumError.h:28
ROOT::Minuit2::VariableMetricEDMEstimator::Estimate
double Estimate(const FunctionGradient &, const MinimumError &) const
Definition
VariableMetricEDMEstimator.cxx:20
ROOT::Minuit2::similarity
double similarity(const LAVector &, const LASymMatrix &)
Definition
LaVtMVSimilarity.cxx:20
ROOT
tbb::task_arena is an alias of tbb::interface7::task_arena, which doesn't allow to forward declare tb...
Definition
EExecutionPolicy.hxx:4
math
minuit2
src
VariableMetricEDMEstimator.cxx
ROOT master - Reference Guide Generated on Mon Feb 17 2025 15:03:30 (GVA Time) using Doxygen 1.10.0