ROOT  6.07/01
Reference Guide
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
Typedefs | Functions | Variables
testMinimizer.cxx File Reference
#include "Math/Minimizer.h"
#include "Math/Factory.h"
#include "Math/Functor.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 dependency graph for testMinimizer.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)
 
double WoodFunction (const double *par)
 
double PowellFunction (const double *par)
 
double SimpleQuadFunction (const double *par)
 
const doubleTrueMinimum (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 testChebyQuad ()
 
int testTrigoFletcher ()
 
int testWood ()
 
int testPowell ()
 
int testQuadFunc ()
 
int main ()
 

Variables

int gNCall = 0
 
int gNCall2 = 0
 
int gNmin = 1000
 
int gVerbose = 0
 
bool useGradient = false
 
bool minos = true
 
double gAbsTolerance = 0.005
 

Typedef Documentation

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

Definition at line 37 of file testMinimizer.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 445 of file testMinimizer.cxx.

Referenced by testNewMinimizer().

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

Definition at line 515 of file testMinimizer.cxx.

Referenced by testOldMinimizer().

int main ( )

Definition at line 861 of file testMinimizer.cxx.

double PowellFunction ( const double par)

Definition at line 394 of file testMinimizer.cxx.

Referenced by testPowell().

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

Definition at line 431 of file testMinimizer.cxx.

Referenced by testNewMinimizer().

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

Definition at line 44 of file testMinimizer.cxx.

double SimpleQuadFunction ( const double par)

Definition at line 411 of file testMinimizer.cxx.

Referenced by testQuadFunc().

int testChebyQuad ( )

Definition at line 681 of file testMinimizer.cxx.

Referenced by main().

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 
)

Definition at line 611 of file testMinimizer.cxx.

int testPowell ( )

Definition at line 803 of file testMinimizer.cxx.

Referenced by main().

int testQuadFunc ( )

Definition at line 832 of file testMinimizer.cxx.

Referenced by main().

int testRosenBrock ( )

Definition at line 644 of file testMinimizer.cxx.

Referenced by main().

int testTrigoFletcher ( )

Definition at line 740 of file testMinimizer.cxx.

Referenced by main().

int testWood ( )

Definition at line 773 of file testMinimizer.cxx.

Referenced by main().

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

Definition at line 420 of file testMinimizer.cxx.

Referenced by DoNewMinimization().

double WoodFunction ( const double par)

Definition at line 374 of file testMinimizer.cxx.

Referenced by testWood().

Variable Documentation

double gAbsTolerance = 0.005

Definition at line 33 of file testMinimizer.cxx.

Referenced by DoNewMinimization(), and DoOldMinimization().

int gNCall = 0
int gNCall2 = 0

Definition at line 26 of file testMinimizer.cxx.

Referenced by testNewMinimizer().

int gNmin = 1000
int gVerbose = 0

Definition at line 28 of file testMinimizer.cxx.

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

bool minos = true

Definition at line 31 of file testMinimizer.cxx.

Referenced by DoNewMinimization(), and DoOldMinimization().

bool useGradient = false

Definition at line 29 of file testMinimizer.cxx.

Referenced by DoNewMinimization(), and ROOT::Fit::Fitter::SetFunction().