ROOT  6.06/08
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:

Go to the source code of this file.

Typedefs

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

Functions

void RosenBrock (Int_t &, Double_t *, Double_t &f, Double_t *par, Int_t)
 
const double * TrueXMinimum (const ROOT::Math::IMultiGenFunction &func)
 
double TrueMinimum (const ROOT::Math::IMultiGenFunction &func)
 
void printMinimum (const std::vector< double > &x)
 
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 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 ()
 
int testChebyQuad ()
 
int main ()
 

Variables

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

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.

Referenced by testNewMinimizer().

§ DoOldMinimization()

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

Definition at line 484 of file testMinim.cxx.

Referenced by testOldMinimizer().

§ 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.

Referenced by testNewMinimizer().

§ RosenBrock()

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

Definition at line 46 of file testMinim.cxx.

Referenced by testGAMinimizer(), and testRosenBrock().

§ 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.

Referenced by testChebyQuad(), testRosenBrock(), and testTrigoFletcher().

§ testOldMinimizer()

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

Definition at line 581 of file testMinim.cxx.

Referenced by testRosenBrock().

§ testRosenBrock()

int testRosenBrock ( )

Definition at line 614 of file testMinim.cxx.

Referenced by main().

§ 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.

Referenced by DoNewMinimization(), and RosenBrock().

§ TrueXMinimum()

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

Definition at line 381 of file testMinim.cxx.

Referenced by DoNewMinimization(), and RosenBrock().

Variable Documentation

§ gAbsTolerance

double gAbsTolerance = 5.E-6

Definition at line 35 of file testMinim.cxx.

Referenced by DoNewMinimization(), and DoOldMinimization().

§ gNCall

int gNCall = 0

Definition at line 27 of file testMinim.cxx.

Referenced by RosenBrock(), testNewMinimizer(), and testOldMinimizer().

§ gNCall2

int gNCall2 = 0

Definition at line 28 of file testMinim.cxx.

Referenced by RosenBrock(), and testNewMinimizer().

§ gNmin

int gNmin = 1

§ gVerbose

int gVerbose = 1

Definition at line 30 of file testMinim.cxx.

Referenced by DoNewMinimization(), DoOldMinimization(), and main().

§ minos

bool minos = false