Logo ROOT   6.08/07
Reference Guide
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:

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 ()
 
double PowellFunction (const double *par)
 
void printMinimum (const std::vector< double > &x)
 
void RosenBrock (Int_t &, Double_t *, Double_t &f, Double_t *par, Int_t)
 
double SimpleQuadFunction (const double *par)
 
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 testPowell ()
 
int testQuadFunc ()
 
int testRosenBrock ()
 
int testTrigoFletcher ()
 
int testWood ()
 
const double * TrueMinimum (const ROOT::Math::IMultiGenFunction &func)
 
double WoodFunction (const double *par)
 

Variables

double gAbsTolerance = 0.005
 
int gNCall = 0
 
int gNCall2 = 0
 
int gNmin = 1000
 
int gVerbose = 0
 
bool minos = true
 
bool useGradient = 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 37 of file testMinimizer.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 445 of file testMinimizer.cxx.

◆ DoOldMinimization()

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

Definition at line 515 of file testMinimizer.cxx.

◆ main()

int main ( )

Definition at line 861 of file testMinimizer.cxx.

◆ PowellFunction()

double PowellFunction ( const double *  par)

Definition at line 394 of file testMinimizer.cxx.

◆ printMinimum()

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

Definition at line 431 of file testMinimizer.cxx.

◆ RosenBrock()

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

Definition at line 44 of file testMinimizer.cxx.

◆ SimpleQuadFunction()

double SimpleQuadFunction ( const double *  par)

Definition at line 411 of file testMinimizer.cxx.

◆ testChebyQuad()

int testChebyQuad ( )

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

◆ testOldMinimizer()

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

Definition at line 611 of file testMinimizer.cxx.

◆ testPowell()

int testPowell ( )

Definition at line 803 of file testMinimizer.cxx.

◆ testQuadFunc()

int testQuadFunc ( )

Definition at line 832 of file testMinimizer.cxx.

◆ testRosenBrock()

int testRosenBrock ( )

Definition at line 644 of file testMinimizer.cxx.

◆ testTrigoFletcher()

int testTrigoFletcher ( )

Definition at line 740 of file testMinimizer.cxx.

◆ testWood()

int testWood ( )

Definition at line 773 of file testMinimizer.cxx.

◆ TrueMinimum()

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

Definition at line 420 of file testMinimizer.cxx.

◆ WoodFunction()

double WoodFunction ( const double *  par)

Definition at line 374 of file testMinimizer.cxx.

Variable Documentation

◆ gAbsTolerance

double gAbsTolerance = 0.005

Definition at line 33 of file testMinimizer.cxx.

◆ gNCall

int gNCall = 0

Definition at line 25 of file testMinimizer.cxx.

◆ gNCall2

int gNCall2 = 0

Definition at line 26 of file testMinimizer.cxx.

◆ gNmin

int gNmin = 1000

Definition at line 27 of file testMinimizer.cxx.

◆ gVerbose

int gVerbose = 0

Definition at line 28 of file testMinimizer.cxx.

◆ minos

bool minos = true

Definition at line 31 of file testMinimizer.cxx.

◆ useGradient

bool useGradient = false

Definition at line 29 of file testMinimizer.cxx.