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

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 doubleTrueXMinimum (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

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

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().

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

Definition at line 484 of file testMinim.cxx.

Referenced by testOldMinimizer().

int main ( )

Definition at line 740 of file testMinim.cxx.

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

Definition at line 402 of file testMinim.cxx.

Referenced by testNewMinimizer().

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().

int testChebyQuad ( )

Definition at line 682 of file testMinim.cxx.

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().

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

Definition at line 581 of file testMinim.cxx.

Referenced by testRosenBrock().

int testRosenBrock ( )

Definition at line 614 of file testMinim.cxx.

Referenced by main().

int testTrigoFletcher ( )

Definition at line 651 of file testMinim.cxx.

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

Definition at line 391 of file testMinim.cxx.

Referenced by DoNewMinimization().

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

Definition at line 381 of file testMinim.cxx.

Referenced by DoNewMinimization().

Variable Documentation

double gAbsTolerance = 5.E-6

Definition at line 35 of file testMinim.cxx.

Referenced by DoNewMinimization(), and DoOldMinimization().

int gNCall = 0

Definition at line 27 of file testMinim.cxx.

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

int gNCall2 = 0

Definition at line 28 of file testMinim.cxx.

Referenced by testNewMinimizer().

int gNmin = 1
int gVerbose = 1

Definition at line 30 of file testMinim.cxx.

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

bool minos = false