Logo ROOT  
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
12namespace ROOT {
13
14namespace Minuit2 {
15
16MnStrategy::MnStrategy() : fStoreLevel(1)
17{
18 // default strategy
20}
21
22MnStrategy::MnStrategy(unsigned int stra) : fStoreLevel(1)
23{
24 // user defined strategy (0, 1, >=2)
25 if (stra == 0)
27 else if (stra == 1)
29 else
31}
32
34{
35 // set low strategy (0) values
36 fStrategy = 0;
44}
45
47{
48 // set minimum strategy (1) the default
49 fStrategy = 1;
57}
58
60{
61 // set high strategy (2)
62 fStrategy = 2;
70}
71
72} // namespace Minuit2
73
74} // namespace ROOT
void SetHessianNCycles(unsigned int n)
Definition MnStrategy.h:63
void SetHessianStepTolerance(double stp)
Definition MnStrategy.h:64
void SetGradientTolerance(double toler)
Definition MnStrategy.h:61
void SetGradientNCycles(unsigned int n)
Definition MnStrategy.h:59
void SetGradientStepTolerance(double stp)
Definition MnStrategy.h:60
void SetHessianGradientNCycles(unsigned int n)
Definition MnStrategy.h:66
void SetHessianG2Tolerance(double toler)
Definition MnStrategy.h:65
This file contains a specialised ROOT message handler to test for diagnostic in unit tests.