ROOT  6.06/09
Reference Guide
Functions | Variables
timeGA.cxx File Reference
#include "TH1.h"
#include "TF1.h"
#include "Fit/BinData.h"
#include "Fit/Chi2FCN.h"
#include "Math/WrappedMultiTF1.h"
#include "Math/Minimizer.h"
#include "Math/GeneticMinimizer.h"
#include "Math/Factory.h"
#include "HFitInterface.h"
#include "TMath.h"
#include <TStopwatch.h>
+ Include dependency graph for timeGA.cxx:

Go to the source code of this file.

Functions

Double_t background (Double_t *x, Double_t *par)
 
Double_t gaussianPeak (Double_t *x, Double_t *par)
 
Double_t fitFunction (Double_t *x, Double_t *par)
 
int GAMinimize (ROOT::Math::IMultiGenFunction &chi2Func, double &xm1, double &xm2)
 
int GAMinTutorial ()
 
int main (int argc, char **argv)
 

Variables

double par0 [8] = { 1, 0.05, 10 , 2, 0.5 , 10 , 7 , 1. }
 
const int ndata = 10000
 
const double gAbsTolerance = 0.1
 
int gVerbose = 0
 

Function Documentation

Double_t background ( Double_t x,
Double_t par 
)

Definition at line 19 of file timeGA.cxx.

Referenced by fitFunction().

Double_t fitFunction ( Double_t x,
Double_t par 
)

Definition at line 29 of file timeGA.cxx.

Referenced by GAMinTutorial().

int GAMinimize ( ROOT::Math::IMultiGenFunction chi2Func,
double xm1,
double xm2 
)

Definition at line 42 of file timeGA.cxx.

Referenced by GAMinTutorial().

int GAMinTutorial ( )

Definition at line 92 of file timeGA.cxx.

Referenced by main().

Double_t gaussianPeak ( Double_t x,
Double_t par 
)

Definition at line 24 of file timeGA.cxx.

Referenced by fitFunction().

int main ( int  argc,
char **  argv 
)

Definition at line 124 of file timeGA.cxx.

Variable Documentation

const double gAbsTolerance = 0.1

Definition at line 36 of file timeGA.cxx.

Referenced by GAMinimize().

int gVerbose = 0

Definition at line 37 of file timeGA.cxx.

Referenced by GAMinimize(), and main().

const int ndata = 10000

Definition at line 35 of file timeGA.cxx.

Referenced by GAMinTutorial().

double par0[8] = { 1, 0.05, 10 , 2, 0.5 , 10 , 7 , 1. }

Definition at line 34 of file timeGA.cxx.

Referenced by GAMinimize(), and GAMinTutorial().