Logo ROOT   6.10/09
Reference Guide
Typedefs | Functions | Variables
testMinim.cxx File Reference
#include "Math/Minimizer.h"
#include "Math/Factory.h"
#include "TVirtualFitter.h"
#include "Math/IFunction.h"
#include "Math/Util.h"
#include <cmath>
#include <cassert>
#include <string>
#include <iostream>
#include "TStopwatch.h"
#include "TMatrixD.h"
#include "TVectorD.h"
#include "TRandom3.h"
#include "TMath.h"
#include "RVersion.h"
#include "RConfigure.h"
Include dependency graph for testMinim.cxx:

Typedefs

typedef void(* FCN) (Int_t &npar, Double_t *gin, Double_t &f, Double_t *u, Int_t flag)
 

Functions

int DoNewMinimization (const ROOT::Math::IMultiGenFunction &func, const double *x0, const double *s0, ROOT::Math::Minimizer *min, double &minval, double &edm, double *minx)
 
int DoOldMinimization (FCN func, TVirtualFitter *min, double &minval, double &edm)
 
int main ()
 
void printMinimum (const std::vector< double > &x)
 
void RosenBrock (Int_t &, Double_t *, Double_t &f, Double_t *par, Int_t)
 
int testChebyQuad ()
 
int testNewMinimizer (const ROOT::Math::IMultiGenFunction &func, const double *x0, const double *s0, const std::string &minimizer, const std::string &algoType)
 
int testOldMinimizer (FCN func, const std::string &fitter, int n=25)
 
int testRosenBrock ()
 
int testTrigoFletcher ()
 
double TrueMinimum (const ROOT::Math::IMultiGenFunction &func)
 
const double * TrueXMinimum (const ROOT::Math::IMultiGenFunction &func)
 

Variables

double gAbsTolerance = 5.E-6
 
int gNCall = 0
 
int gNCall2 = 0
 
int gNmin = 1
 
int gVerbose = 1
 
bool minos = false
 

Typedef Documentation

◆ FCN

typedef void(* FCN) (Int_t &npar, Double_t *gin, Double_t &f, Double_t *u, Int_t flag)

Definition at line 39 of file testMinim.cxx.

Function Documentation

◆ DoNewMinimization()

int DoNewMinimization ( const ROOT::Math::IMultiGenFunction func,
const double *  x0,
const double *  s0,
ROOT::Math::Minimizer min,
double &  minval,
double &  edm,
double *  minx 
)

Definition at line 416 of file testMinim.cxx.

◆ DoOldMinimization()

int DoOldMinimization ( FCN  func,
TVirtualFitter min,
double &  minval,
double &  edm 
)

Definition at line 484 of file testMinim.cxx.

◆ main()

int main ( )

Definition at line 740 of file testMinim.cxx.

◆ printMinimum()

void printMinimum ( const std::vector< double > &  x)

Definition at line 402 of file testMinim.cxx.

◆ RosenBrock()

void RosenBrock ( Int_t ,
Double_t ,
Double_t f,
Double_t par,
Int_t   
)

Definition at line 46 of file testMinim.cxx.

◆ testChebyQuad()

int testChebyQuad ( )

Definition at line 682 of file testMinim.cxx.

◆ testNewMinimizer()

int testNewMinimizer ( const ROOT::Math::IMultiGenFunction func,
const double *  x0,
const double *  s0,
const std::string &  minimizer,
const std::string &  algoType 
)

Definition at line 530 of file testMinim.cxx.

◆ testOldMinimizer()

int testOldMinimizer ( FCN  func,
const std::string &  fitter,
int  n = 25 
)

Definition at line 581 of file testMinim.cxx.

◆ testRosenBrock()

int testRosenBrock ( )

Definition at line 614 of file testMinim.cxx.

◆ testTrigoFletcher()

int testTrigoFletcher ( )

Definition at line 651 of file testMinim.cxx.

◆ TrueMinimum()

double TrueMinimum ( const ROOT::Math::IMultiGenFunction func)

Definition at line 391 of file testMinim.cxx.

◆ TrueXMinimum()

const double* TrueXMinimum ( const ROOT::Math::IMultiGenFunction func)

Definition at line 381 of file testMinim.cxx.

Variable Documentation

◆ gAbsTolerance

double gAbsTolerance = 5.E-6

Definition at line 35 of file testMinim.cxx.

◆ gNCall

int gNCall = 0

Definition at line 27 of file testMinim.cxx.

◆ gNCall2

int gNCall2 = 0

Definition at line 28 of file testMinim.cxx.

◆ gNmin

int gNmin = 1

Definition at line 29 of file testMinim.cxx.

◆ gVerbose

int gVerbose = 1

Definition at line 30 of file testMinim.cxx.

◆ minos

bool minos = false

Definition at line 33 of file testMinim.cxx.