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

Functions

Double_t background (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 ()
 
Double_t gaussianPeak (Double_t *x, Double_t *par)
 
int main (int argc, char **argv)
 

Variables

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

Function Documentation

◆ background()

Double_t background ( Double_t x,
Double_t par 
)

Definition at line 19 of file timeGA.cxx.

◆ fitFunction()

Double_t fitFunction ( Double_t x,
Double_t par 
)

Definition at line 29 of file timeGA.cxx.

◆ GAMinimize()

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

Definition at line 42 of file timeGA.cxx.

◆ GAMinTutorial()

int GAMinTutorial ( )

Definition at line 92 of file timeGA.cxx.

◆ gaussianPeak()

Double_t gaussianPeak ( Double_t x,
Double_t par 
)

Definition at line 24 of file timeGA.cxx.

◆ main()

int main ( int  argc,
char **  argv 
)

Definition at line 124 of file timeGA.cxx.

Variable Documentation

◆ gAbsTolerance

const double gAbsTolerance = 0.1

Definition at line 36 of file timeGA.cxx.

◆ gVerbose

int gVerbose = 0

Definition at line 37 of file timeGA.cxx.

◆ ndata

const int ndata = 10000

Definition at line 35 of file timeGA.cxx.

◆ par0

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

Definition at line 34 of file timeGA.cxx.