Definition at line 167 of file LogLikelihoodFCN.h.
Definition at line 167 of file LogLikelihoodFCN.h.
Definition at line 168 of file LogLikelihoodFCN.h.
Definition at line 168 of file LogLikelihoodFCN.h.
Definition at line 156 of file PoissonLikelihoodFCN.h.
Definition at line 156 of file PoissonLikelihoodFCN.h.
Definition at line 157 of file PoissonLikelihoodFCN.h.
Definition at line 157 of file PoissonLikelihoodFCN.h.
void ROOT::Fit::DivideBox | ( | const vector< double > & | min, | |
const vector< double > & | max, | |||
const vector< double > & | bmin, | |||
const vector< double > & | bmax, | |||
const unsigned int | size, | |||
const unsigned int | n, | |||
list< Box > & | l, | |||
const double | val, | |||
const double | error | |||
) |
Definition at line 563 of file HFitInterface.cxx.
References ROOT::Fit::BinData::Add(), ROOT::Fit::HFitInterface::AdjustError(), ROOT::Fit::DataOptions::fCoordErrors, ROOT::Fit::DataOptions::fErrors1, func(), TGraph::GetErrorXhigh(), TGraph::GetErrorXlow(), TGraph::GetErrorY(), TGraph::GetErrorYhigh(), TGraph::GetErrorYlow(), TGraph::GetN(), TGraph::GetX(), TGraph::GetY(), gr, i, ROOT::Fit::BinData::Initialize(), ROOT::Fit::BinData::kAsymError, ROOT::Fit::BinData::kValueError, max, ROOT::Fit::FitData::Opt(), ROOT::Fit::FitData::Range(), ROOT::Fit::BinData::Size(), x, xmax, and xmin.
Referenced by FillData().
void ROOT::Fit::FillData | ( | BinData & | dv, | |
const TMultiGraph * | gr, | |||
TF1 * | func = 0 | |||
) |
fill the data vector from a TMultiGraph. Pass also the TF1 function which is needed in case to exclude points rejected by the function
Definition at line 815 of file HFitInterface.cxx.
References DoFillData(), ROOT::Fit::DataOptions::fAsymErrors, ROOT::Fit::DataOptions::fCoordErrors, ROOT::Fit::DataOptions::fErrors1, func(), GetDataType(), TMultiGraph::GetListOfGraphs(), gr, ROOT::Fit::BinData::kAsymError, ROOT::Fit::BinData::kCoordError, kIterBackward, ROOT::Fit::BinData::kNoError, ROOT::Fit::FitData::Opt(), ROOT::Fit::BinData::Size(), t, and type.
fill the data vector from a TGraph. Pass also the TF1 function which is needed in case to exclude points rejected by the function
Definition at line 777 of file HFitInterface.cxx.
References DoFillData(), ROOT::Error(), ROOT::Fit::DataOptions::fAsymErrors, ROOT::Fit::DataOptions::fCoordErrors, ROOT::Fit::DataOptions::fErrors1, func(), GetDataType(), gr, ROOT::Fit::BinData::kAsymError, ROOT::Fit::BinData::kCoordError, ROOT::Fit::BinData::kNoError, ROOT::Fit::BinData::kValueError, ROOT::Fit::BinData::NDim(), ROOT::Fit::FitData::Opt(), ROOT::Fit::BinData::PointSize(), ROOT::Fit::BinData::Size(), and type.
fill the data vector from a TGraph2D. Pass also the TF1 function which is needed in case of integral option and to reject points rejected by the function
Definition at line 868 of file HFitInterface.cxx.
References ROOT::Fit::BinData::Add(), ROOT::Fit::HFitInterface::AdjustError(), ROOT::Fit::DataOptions::fAsymErrors, ROOT::Fit::DataOptions::fCoordErrors, ROOT::Fit::DataOptions::fErrors1, func(), GetDataType(), TGraph::GetErrorX(), TGraph::GetErrorY(), TGraph::GetN(), TGraph::GetX(), TGraph::GetY(), gr, i, ROOT::Fit::BinData::Initialize(), ROOT::Fit::BinData::kCoordError, ROOT::Fit::BinData::kNoError, ROOT::Fit::BinData::kValueError, max, ROOT::Fit::FitData::Opt(), ROOT::Fit::FitData::Range(), ROOT::Fit::BinData::Size(), type, x, xmax, xmin, ymax, and ymin.
fill the data vector from a THnSparse. Pass also the TF1 function which is needed in case of integral option and to reject points rejected by the function
Definition at line 746 of file HFitInterface.cxx.
References axis, d, ROOT::Fit::DataOptions::fBinVolume, FillData(), func(), ROOT::Fit::DataOptions::fUseEmpty, i, ROOT::Fit::FitData::Opt(), s1, xmax, and xmin.
fill the data vector from a THnSparse. Pass also the TF1 function which is needed in case of integral option and to reject points rejected by the function
Definition at line 703 of file HFitInterface.cxx.
References ROOT::Fit::SparseData::Add(), axis, TH2D::GetBinContent(), TH1::GetBinError(), TH1::GetBinLowEdge(), h1, i, j, max, min, and value.
fill the data vector from a TH1 with sparse data. Pass also the TF1 function which is needed in case of integral option and to reject points rejected by the function
Definition at line 658 of file HFitInterface.cxx.
References ROOT::Fit::SparseData::Add(), array, TH1::GetDimension(), h1, i, max, min, x, and y.
fill the data vector from a TH1. Pass also the TF1 function which is needed in case of integral option and to reject points rejected by the function
Definition at line 106 of file HFitInterface.cxx.
References ROOT::Fit::BinData::Add(), ROOT::Fit::BinData::AddBinUpEdge(), ROOT::Fit::HFitInterface::AdjustError(), error, ROOT::Fit::HFitInterface::ExamineRange(), ROOT::Fit::DataOptions::fBinVolume, ROOT::Fit::DataOptions::fIntegral, func(), TAxis::GetBinCenter(), TH1::GetBinContent(), TH1::GetBinError(), TAxis::GetBinLowEdge(), TAxis::GetBinUpEdge(), TAxis::GetBinWidth(), TH1::GetDimension(), TAxis::GetFirst(), TAxis::GetLast(), TH1::GetXaxis(), TH1::GetYaxis(), TH1::GetZaxis(), ROOT::Fit::BinData::Initialize(), n, ROOT::Fit::FitData::Opt(), ROOT::Fit::FitData::Range(), s, ROOT::Fit::BinData::Size(), value, Warning(), and x.
Referenced by combinedFit(), DoBinFit(), DoFit(), FillData(), ObjectWrapper< T >::Fit(), HFit::Fit(), fit2DHist(), fit3DHist(), fitSparse1D(), G__G__Hist_112_0_2(), G__G__Hist_112_0_3(), G__G__Hist_112_0_4(), G__G__Hist_112_0_5(), G__G__Hist_112_0_6(), G__G__Hist_112_0_7(), G__G__Hist_112_0_8(), G__setup_memfuncROOTcLcLFit(), GAMinTutorial(), TBackCompFitter::GetConfidenceIntervals(), GetConfidenceIntervals(), InitParameters(), OneDimension(), testBinDataData1D(), testBinDataData1DInt(), testBinDataData2D(), testBinDataData2DInt(), testBinDataData3D(), testBinDataData3DInt(), testGraphFit(), testHisto1DFit(), testHisto1DPolFit(), testHisto2DFit(), testSparseData1DFull(), testSparseData1DSparse(), testSparseData2DFull(), testSparseData2DSparse(), testSparseData3DFull(), testSparseData3DSparse(), and TwoDimensions().
TFitResultPtr ROOT::Fit::FitObject | ( | THnSparse * | s1, | |
TF1 * | f1, | |||
Foption_t & | option, | |||
const ROOT::Math::MinimizerOptions & | moption, | |||
const char * | goption, | |||
ROOT::Fit::DataRange & | range | |||
) |
fitting function for a THnSparse (called from THnSparse::Fit)
Definition at line 797 of file HFitImpl.cxx.
References HFit::Fit(), and s1.
Referenced by TFitEditor::DoFit().
TFitResultPtr ROOT::Fit::FitObject | ( | TGraph2D * | gr, | |
TF1 * | f1, | |||
Foption_t & | option, | |||
const ROOT::Math::MinimizerOptions & | moption, | |||
const char * | goption, | |||
ROOT::Fit::DataRange & | range | |||
) |
fitting function for a TGraph2D (called from TGraph2D::Fit)
Definition at line 790 of file HFitImpl.cxx.
References HFit::CheckGraphFitOptions(), HFit::Fit(), and gr.
TFitResultPtr ROOT::Fit::FitObject | ( | TMultiGraph * | mg, | |
TF1 * | f1, | |||
Foption_t & | option, | |||
const ROOT::Math::MinimizerOptions & | moption, | |||
const char * | goption, | |||
ROOT::Fit::DataRange & | range | |||
) |
fitting function for a MultiGraph (called from TMultiGraph::Fit)
Definition at line 783 of file HFitImpl.cxx.
References HFit::CheckGraphFitOptions(), HFit::Fit(), and gr.
TFitResultPtr ROOT::Fit::FitObject | ( | TGraph * | gr, | |
TF1 * | f1, | |||
Foption_t & | option, | |||
const ROOT::Math::MinimizerOptions & | moption, | |||
const char * | goption, | |||
ROOT::Fit::DataRange & | range | |||
) |
fitting function for a TGraph (called from TGraph::Fit)
Definition at line 776 of file HFitImpl.cxx.
References HFit::CheckGraphFitOptions(), HFit::Fit(), and gr.
TFitResultPtr ROOT::Fit::FitObject | ( | TH1 * | h1, | |
TF1 * | f1, | |||
Foption_t & | option, | |||
const ROOT::Math::MinimizerOptions & | moption, | |||
const char * | goption, | |||
ROOT::Fit::DataRange & | range | |||
) |
fitting function for a TH1 (called from TH1::Fit)
Definition at line 771 of file HFitImpl.cxx.
References HFit::Fit(), and h1.
TFitResultPtr ROOT::Fit::FitObject | ( | THnSparse * | s1, | |
TF1 * | f1, | |||
Foption_t & | option, | |||
const ROOT::Math::MinimizerOptions & | moption, | |||
const char * | goption, | |||
ROOT::Fit::DataRange & | range | |||
) |
fitting function for a THnSparse (called from THnSparse::Fit)
Definition at line 797 of file HFitImpl.cxx.
References HFit::Fit(), and s1.
Referenced by TFitEditor::DoFit().
TFitResultPtr ROOT::Fit::FitObject | ( | TGraph2D * | gr, | |
TF1 * | f1, | |||
Foption_t & | option, | |||
const ROOT::Math::MinimizerOptions & | moption, | |||
const char * | goption, | |||
ROOT::Fit::DataRange & | range | |||
) |
fitting function for a TGraph2D (called from TGraph2D::Fit)
Definition at line 790 of file HFitImpl.cxx.
TFitResultPtr ROOT::Fit::FitObject | ( | TMultiGraph * | mg, | |
TF1 * | f1, | |||
Foption_t & | option, | |||
const ROOT::Math::MinimizerOptions & | moption, | |||
const char * | goption, | |||
ROOT::Fit::DataRange & | range | |||
) |
fitting function for a MultiGraph (called from TMultiGraph::Fit)
Definition at line 783 of file HFitImpl.cxx.
TFitResultPtr ROOT::Fit::FitObject | ( | TGraph * | gr, | |
TF1 * | f1, | |||
Foption_t & | option, | |||
const ROOT::Math::MinimizerOptions & | moption, | |||
const char * | goption, | |||
ROOT::Fit::DataRange & | range | |||
) |
fitting function for a TGraph (called from TGraph::Fit)
Definition at line 776 of file HFitImpl.cxx.
TFitResultPtr ROOT::Fit::FitObject | ( | TH1 * | h1, | |
TF1 * | f1, | |||
Foption_t & | option, | |||
const ROOT::Math::MinimizerOptions & | moption, | |||
const char * | goption, | |||
ROOT::Fit::DataRange & | range | |||
) |
fitting function for a TH1 (called from TH1::Fit)
Definition at line 771 of file HFitImpl.cxx.
Referenced by TFitEditor::DoFit(), THnSparse::Fit(), TGraph::Fit(), TH1::Fit(), TGraph2D::Fit(), and TMultiGraph::Fit().
void ROOT::Fit::FitOptionsMake | ( | const char * | option, | |
Foption_t & | fitOption | |||
) |
Decode list of options into fitOption
Definition at line 577 of file HFitImpl.cxx.
References Foption_t::Bound, Foption_t::Chi2, TString::Contains(), Foption_t::Errors, Foption_t::Gradient, h, Foption_t::hRobust, if(), TString::Index(), Foption_t::Integral, len, TString::Length(), Foption_t::Like, Foption_t::Minuit, Foption_t::More, Foption_t::Nochisq, Foption_t::NoErrX, Foption_t::Nograph, Foption_t::Nostore, num, Foption_t::Plus, TMath::Power(), Foption_t::Quiet, Foption_t::Range, TString::Remove(), TString::ReplaceAll(), Foption_t::Robust, start, Foption_t::StoreResult, TString::ToUpper(), Foption_t::User, Foption_t::Verbose, and Foption_t::W1.
void ROOT::Fit::FitOptionsMake | ( | const char * | option, | |
Foption_t & | fitOption | |||
) |
Decode list of options into fitOption
Definition at line 577 of file HFitImpl.cxx.
Referenced by TGraph::Fit(), TGraph2D::Fit(), and TMultiGraph::Fit().
bool ROOT::Fit::GetConfidenceIntervals | ( | const TH1 * | h1, | |
const ROOT::Fit::FitResult & | r, | |||
TGraphErrors * | gr, | |||
double | cl = 0.95 | |||
) |
compute confidence intervals at level cl for a fitted histogram h1 in a TGraphErrors gr
Definition at line 956 of file HFitInterface.cxx.
References d, ROOT::Error(), FillData(), func(), TH1::GetDimension(), TGraph::GetEY(), gr, h1, result(), TGraph::Set(), TGraph::SetPoint(), and x.
Referenced by ConfidenceIntervals(), G__G__Hist_112_0_12(), G__G__MathCore_121_0_8(), G__G__MathCore_121_0_9(), G__G__MathFit_163_0_36(), G__G__MathFit_163_0_37(), and G__setup_memfuncROOTcLcLFit().
BinData::ErrorType ROOT::Fit::GetDataType | ( | const TGraph2D * | gr, | |
const DataOptions & | fitOpt | |||
) |
Definition at line 532 of file HFitInterface.cxx.
References ROOT::Fit::DataOptions::fCoordErrors, TGraph::GetEX(), TGraph::GetEY(), TNamed::GetName(), gr, i, ROOT::Fit::BinData::kCoordError, ROOT::Fit::BinData::kNoError, ROOT::Fit::BinData::kValueError, and type.
Referenced by G__G__Meta_123_0_7().
BinData::ErrorType ROOT::Fit::GetDataType | ( | const TGraph * | gr, | |
const DataOptions & | fitOpt | |||
) |
Definition at line 474 of file HFitInterface.cxx.
References ROOT::Fit::DataOptions::fAsymErrors, ROOT::Fit::DataOptions::fCoordErrors, ROOT::Fit::DataOptions::fErrors1, TGraph::GetErrorXhigh(), TGraph::GetErrorXlow(), TGraph::GetEX(), TGraph::GetEY(), TGraph::GetEYhigh(), TGraph::GetEYlow(), TNamed::GetName(), gr, i, ROOT::Fit::BinData::kAsymError, ROOT::Fit::BinData::kCoordError, ROOT::Fit::BinData::kNoError, ROOT::Fit::BinData::kValueError, and type.
Referenced by FillData().
void ROOT::Fit::Init2DGaus | ( | const ROOT::Fit::BinData & | data, | |
TF1 * | f1 | |||
) |
compute initial parameter for 2D gaussian function given the fit data Set the sigma limits for zero top 10* initial rms values Set the initial parameter values in the TF1
Definition at line 382 of file HFitInterface.cxx.
References coords, data, i, n, TFormula::SetParameter(), TF1::SetParLimits(), sqrt(), val, x, x0, and y.
Referenced by HFit::Fit(), G__G__Hist_112_0_11(), G__setup_memfuncROOTcLcLFit(), and InitParameters().
void ROOT::Fit::InitExpo | ( | const ROOT::Fit::BinData & | data, | |
TF1 * | f1 | |||
) |
compute initial parameter for an exponential function given the fit data Set the constant and slope assuming a simple exponential going through xmin and xmax of the data set
Definition at line 260 of file HFitInterface.cxx.
References data, i, log(), n, TFormula::SetParameters(), val, x, xmax, and xmin.
Referenced by HFit::Fit(), G__G__Hist_104_0_79(), G__G__Hist_107_0_17(), G__G__Hist_112_0_9(), and G__setup_memfuncROOTcLcLFit().
void ROOT::Fit::InitGaus | ( | const ROOT::Fit::BinData & | data, | |
TF1 * | f1 | |||
) |
compute initial parameter for gaussian function given the fit data Set the sigma limits for zero top 10* initial rms values Set the initial parameter values in the TF1
Definition at line 299 of file HFitInterface.cxx.
References data, i, n, TFormula::SetParameter(), TF1::SetParLimits(), sqrt(), val, x, and x0.
Referenced by HFit::Fit(), G__G__Hist_104_0_80(), G__G__Hist_107_0_18(), G__G__Hist_112_0_10(), G__setup_memfuncROOTcLcLFit(), and InitParameters().
ostream& ROOT::Fit::operator<< | ( | ostream & | os, | |
const ROOT::Fit::Box & | b | |||
) |
TFitResultPtr ROOT::Fit::UnBinFit | ( | ROOT::Fit::UnBinData * | data, | |
TF1 * | f1, | |||
Foption_t & | option, | |||
const ROOT::Math::MinimizerOptions & | moption | |||
) |
fit an unbin data set (from tree or from histogram buffer) using a TF1 pointer and fit options. N.B. ownership of fit data is passed to the UnBinFit function which will be responsible of deleting the data after the fit. User calling this function MUST NOT delete UnBinData after calling it.
Definition at line 637 of file HFitImpl.cxx.
References ROOT::Fit::UnBinData::Coords(), Foption_t::Errors, ROOT::Fit::FitResult::Errors(), ROOT::Fit::ParameterSettings::Fix(), TVirtualFitter::GetFitter(), TFormula::GetNdim(), Foption_t::Gradient, i, ROOT::Fit::FitResult::IsEmpty(), ROOT::Fit::FitConfig::MinimizerOptions(), Foption_t::More, name, ROOT::Fit::FitResult::Ndf(), ROOT::Fit::UnBinData::NDim(), ROOT::Fit::FitResult::Parameters(), ROOT::Fit::FitConfig::ParSettings(), TBackCompFitter::PrintResults(), Foption_t::Quiet, TVirtualFitter::SetFitOption(), TVirtualFitter::SetFitter(), ROOT::Fit::FitConfig::SetMinimizer(), ROOT::Fit::FitConfig::SetMinimizerOptions(), ROOT::Fit::FitConfig::SetMinosErrors(), TNamed::SetName(), ROOT::Fit::FitConfig::SetParabErrors(), ROOT::Math::MinimizerOptions::SetPrintLevel(), TNamed::SetTitle(), TVirtualFitter::SetUserFunc(), ROOT::Fit::UnBinData::Size(), ROOT::Fit::FitResult::Status(), Foption_t::StoreResult, title, Foption_t::Verbose, and Warning().
Referenced by TFitEditor::DoFit(), G__G__Hist_112_0_1(), G__setup_memfuncROOTcLcLFit(), and TTreePlayer::UnbinnedFit().
TFitResultPtr ROOT::Fit::UnBinFit | ( | ROOT::Fit::UnBinData * | data, | |
TF1 * | f1, | |||
Foption_t & | option, | |||
const ROOT::Math::MinimizerOptions & | moption | |||
) |
fit an unbin data set (from tree or from histogram buffer) using a TF1 pointer and fit options. N.B. ownership of fit data is passed to the UnBinFit function which will be responsible of deleting the data after the fit. User calling this function MUST NOT delete UnBinData after calling it.
Definition at line 637 of file HFitImpl.cxx.
References ROOT::Fit::UnBinData::Coords(), ROOT::Fit::FitResult::Errors(), Foption_t::Errors, ROOT::Fit::ParameterSettings::Fix(), TVirtualFitter::GetFitter(), TFormula::GetNdim(), Foption_t::Gradient, i, ROOT::Fit::FitResult::IsEmpty(), ROOT::Fit::FitConfig::MinimizerOptions(), Foption_t::More, name, ROOT::Fit::FitResult::Ndf(), ROOT::Fit::UnBinData::NDim(), ROOT::Fit::FitResult::Parameters(), ROOT::Fit::FitConfig::ParSettings(), TBackCompFitter::PrintResults(), Foption_t::Quiet, TVirtualFitter::SetFitOption(), TVirtualFitter::SetFitter(), ROOT::Fit::FitConfig::SetMinimizer(), ROOT::Fit::FitConfig::SetMinimizerOptions(), ROOT::Fit::FitConfig::SetMinosErrors(), TNamed::SetName(), ROOT::Fit::FitConfig::SetParabErrors(), ROOT::Math::MinimizerOptions::SetPrintLevel(), TNamed::SetTitle(), TVirtualFitter::SetUserFunc(), ROOT::Fit::UnBinData::Size(), ROOT::Fit::FitResult::Status(), Foption_t::StoreResult, title, Foption_t::Verbose, and Warning().
Referenced by TFitEditor::DoFit(), G__G__Hist_112_0_1(), G__setup_memfuncROOTcLcLFit(), and TTreePlayer::UnbinnedFit().