ROOT
v6-26
Reference Guide
Loading...
Searching...
No Matches
MnStrategy.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/MnStrategy.h
"
11
12
namespace
ROOT
{
13
14
namespace
Minuit2 {
15
16
MnStrategy::MnStrategy
() : fStoreLevel(1)
17
{
18
// default strategy
19
SetMediumStrategy
();
20
}
21
22
MnStrategy::MnStrategy
(
unsigned
int
stra) : fStoreLevel(1)
23
{
24
// user defined strategy (0, 1, >=2)
25
if
(stra == 0)
26
SetLowStrategy
();
27
else
if
(stra == 1)
28
SetMediumStrategy
();
29
else
30
SetHighStrategy
();
31
}
32
33
void
MnStrategy::SetLowStrategy
()
34
{
35
// set low strategy (0) values
36
fStrategy
= 0;
37
SetGradientNCycles
(2);
38
SetGradientStepTolerance
(0.5);
39
SetGradientTolerance
(0.1);
40
SetHessianNCycles
(3);
41
SetHessianStepTolerance
(0.5);
42
SetHessianG2Tolerance
(0.1);
43
SetHessianGradientNCycles
(1);
44
}
45
46
void
MnStrategy::SetMediumStrategy
()
47
{
48
// set minimum strategy (1) the default
49
fStrategy
= 1;
50
SetGradientNCycles
(3);
51
SetGradientStepTolerance
(0.3);
52
SetGradientTolerance
(0.05);
53
SetHessianNCycles
(5);
54
SetHessianStepTolerance
(0.3);
55
SetHessianG2Tolerance
(0.05);
56
SetHessianGradientNCycles
(2);
57
}
58
59
void
MnStrategy::SetHighStrategy
()
60
{
61
// set high strategy (2)
62
fStrategy
= 2;
63
SetGradientNCycles
(5);
64
SetGradientStepTolerance
(0.1);
65
SetGradientTolerance
(0.02);
66
SetHessianNCycles
(7);
67
SetHessianStepTolerance
(0.1);
68
SetHessianG2Tolerance
(0.02);
69
SetHessianGradientNCycles
(6);
70
}
71
72
}
// namespace Minuit2
73
74
}
// namespace ROOT
MnStrategy.h
ROOT::Minuit2::MnStrategy::MnStrategy
MnStrategy()
Definition
MnStrategy.cxx:16
ROOT::Minuit2::MnStrategy::SetLowStrategy
void SetLowStrategy()
Definition
MnStrategy.cxx:33
ROOT::Minuit2::MnStrategy::fStrategy
unsigned int fStrategy
Definition
MnStrategy.h:73
ROOT::Minuit2::MnStrategy::SetHessianNCycles
void SetHessianNCycles(unsigned int n)
Definition
MnStrategy.h:63
ROOT::Minuit2::MnStrategy::SetHessianStepTolerance
void SetHessianStepTolerance(double stp)
Definition
MnStrategy.h:64
ROOT::Minuit2::MnStrategy::SetHighStrategy
void SetHighStrategy()
Definition
MnStrategy.cxx:59
ROOT::Minuit2::MnStrategy::SetGradientTolerance
void SetGradientTolerance(double toler)
Definition
MnStrategy.h:61
ROOT::Minuit2::MnStrategy::SetGradientNCycles
void SetGradientNCycles(unsigned int n)
Definition
MnStrategy.h:59
ROOT::Minuit2::MnStrategy::SetGradientStepTolerance
void SetGradientStepTolerance(double stp)
Definition
MnStrategy.h:60
ROOT::Minuit2::MnStrategy::SetHessianGradientNCycles
void SetHessianGradientNCycles(unsigned int n)
Definition
MnStrategy.h:66
ROOT::Minuit2::MnStrategy::SetMediumStrategy
void SetMediumStrategy()
Definition
MnStrategy.cxx:46
ROOT::Minuit2::MnStrategy::SetHessianG2Tolerance
void SetHessianG2Tolerance(double toler)
Definition
MnStrategy.h:65
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
MnStrategy.cxx
ROOT v6-26 - Reference Guide Generated on Mon Sep 11 2023 21:02:41 (GVA Time) using Doxygen 1.9.8