#include <iostream>
#include "TMath.h"
#include "TF1.h"
#include "TCanvas.h"
#include "TGraph.h"
#include "TH2.h"
#include "TStopwatch.h"
#include <cmath>
Go to the source code of this file.
Functions | |
void | DrawFunction (TF1 *f1) |
int | PrintStatus (const char *begin, double result, double expected, double time) |
int | TestRoot (TF1 *f1) |
int | TestMaxMin (TF1 *f1) |
int | TestDerivative (TF1 *f1) |
int | TestIntegral (TF1 *f1) |
double | func (double *x, double *p) |
int | stressTF1 () |
int | main () |
Variables | |
const double | XMIN = 0 |
const double | XMAX = 2*TMath::Pi() |
const Int_t | NB = 100 |
const Int_t | REP = 100000 |
const double | TNORM = REP / 1000000. |
double | sumTime = 0 |
int | ncall = 0 |
void DrawFunction | ( | TF1 * | f1 | ) |
Definition at line 23 of file stressTF1.cxx.
References axis, TGraph::Draw(), TH1::Draw(), TF1::Eval(), hpx, i, kFALSE, NB, TAttLine::SetLineColor(), TAttLine::SetLineWidth(), TH1::SetStats(), TGraph::SetTitle(), x, XMAX, XMIN, and y.
Referenced by G__G__FitPanel_402_0_15().
Definition at line 213 of file stressTF1.cxx.
Referenced by PyROOT::Utility::AddBinaryOperator(), RooCurve::addRange(), PyROOT::Utility::AddToClass(), RooDstD0BG::analyticalIntegral(), RooRealSumPdf::analyticalIntegralWN(), TDirectory::Append(), asim_line_to_generic(), TEfficiency::BetaShortestInterval(), RooFit::bindFunction(), RooFit::bindPdf(), CArraySetArg(), ContDist::Cdf(), DiscrDist::Cdf(), UnuranDistr< Function >::Cdf(), TF1::CentralMoment(), RooRealSumPdf::checkObservables(), chi2FromFit(), TGraph::Chisquare(), ClassImpQ(), RooFoamGenerator::clone(), RooAcceptReject::clone(), TDirectoryFile::CloneObject(), TDirectory::CloneObject(), RooFactoryWSTool::SpecialsIFace::create(), RooNumIntFactory::createIntegrator(), ROOT::Fit::FitConfig::CreateParamsSettings(), RooNumGenFactory::createSampler(), TLinearFitter::CStep(), deflateParams(), DoBinFit(), ROOT::Fit::DoFillData(), DoFit(), DoNewMinimization(), ROOT::Math::DistSampler::DoSetFunction(), DoUnBinFit(), MultiDist::Dpdf(), ContDist::Dpdf(), UnuranDistr< Function >::Dpdf(), UnuranDistrMulti< Function >::Dpdf(), TGeoPainter::DrawBatemanSol(), DrawCumulative(), DrawPopulation(), drr_generic_method(), drr_init(), drr_method_missing(), drr_set_method_args(), drr_singleton_missing(), el_get(), el_set(), TTable::EntryLoop(), FitterUtil::EvalIntegral(), RooRealSumPdf::evaluate(), ROOT::Fit::FitUtil::EvaluateChi2(), ROOT::Fit::FitUtil::EvaluateChi2Effective(), ROOT::Fit::FitUtil::EvaluateChi2Gradient(), ROOT::Fit::FitUtil::EvaluateChi2Residual(), ROOT::Fit::FitUtil::EvaluateLogL(), ROOT::Fit::FitUtil::EvaluateLogLGradient(), ROOT::Fit::FitUtil::EvaluatePdf(), ROOT::Fit::FitUtil::EvaluatePoissonBinPdf(), ROOT::Fit::FitUtil::EvaluatePoissonLogL(), ROOT::Fit::FitUtil::EvaluatePoissonLogLGradient(), exactIntegral(), PyROOT::TRootObjectByValueExecutor::Execute(), PyROOT::TRootObjectRefExecutor::Execute(), PyROOT::TRootObjectExecutor::Execute(), fcn(), ROOT::Fit::FillData(), FindAndAddOperator(), fit2dHist(), ROOT::Fit::FitResult::FitResult(), FitUsingNewFitter(), FitUsingRooFit(), FitUsingTFit(), FitUsingTTreeFit(), FT_Get_Advance(), FT_Get_Advances(), PyROOT::TMemberAdapter::FunctionParameterSize(), RooRealSumPdf::getAnalyticalIntegralWN(), PiecewiseInterpolation::getAnalyticalIntegralWN(), TClass::GetClassMethod(), TBackCompFitter::GetConfidenceIntervals(), ROOT::Fit::GetConfidenceIntervals(), TChi2ExtendedFitData::GetExtendedFitData(), TChi2FitData::GetFitData(), TFitEditor::GetFunctionsFromSystem(), GetParameters(), RooProdPdf::getPartIntList(), PyROOT::GetRootGlobalFromString(), TMemStatDepend::GetSymbols(), TF1::GradientPar(), gxv_LookupTable_validate(), gxv_mort_subtables_validate(), gxv_morx_subtables_validate(), TFitEditor::HasFitFunction(), PyROOT::im_call(), InitParameters(), ROOT::TF1Helper::IntegralError(), interpolate_asim_strip_gradients(), ROOT::Fit::HFitInterface::IsPointOutOfRange(), makeEventSample(), mmcheck(), TF1::Moment(), myfit(), otv_O_x_Ox(), otv_u_C_x_Ox(), otv_u_O_O_O_O_x_Onx(), otv_u_O_O_u_O_O(), otv_u_O_O_x_Onx(), otv_x_Ox(), UnuranDistrMulti< Function >::Pdf(), MultiDist::Pdf(), ContDist::Pdf(), UnuranDistr< Function >::Pdf(), UnuranDistrMulti< Function >::Pdpdf(), MultiDist::Pdpdf(), DiscrDist::Pmf(), printCheb(), RooRealSumPdf::printMetaArgs(), printTestName(), printTitle(), RooFactoryWSTool::processSingleExpression(), RooProdPdf::rearrangeProduct(), TMethodCall::ReturnType(), rl_bind_key(), RooAbsNumGenerator::RooAbsNumGenerator(), RooConvIntegrandBinding::RooConvIntegrandBinding(), RooCurve::RooCurve(), RooFunctor::RooFunctor(), RooFunctorBinding::RooFunctorBinding(), RooMoment::RooMoment(), RooRealSumPdf::RooRealSumPdf(), runTest(), ROOT::Math::GSLMultiMinimizer::Set(), PyROOT::TVoidPtrPtrConverter::SetArg(), PyROOT::TVoidPtrRefConverter::SetArg(), PyROOT::TVoidArrayConverter::SetArg(), PyROOT::TNonConstCStringConverter::SetArg(), PyROOT::TRootObjectPtrConverter::SetArg(), PyROOT::TCStringConverter::SetArg(), TUnuranSampler::SetFunction(), ROOT::Math::GSLNLSMinimizer::SetFunction(), ROOT::Math::GSLSimAnMinimizer::SetFunction(), TMinuitMinimizer::SetFunction(), TFoamSampler::SetFunction(), TFumiliMinimizer::SetFunction(), ROOT::Fit::Fitter::SetFunction(), ROOT::Math::GSLMinimizer::SetFunction(), ROOT::Minuit2::Minuit2Minimizer::SetFunction(), ROOT::Math::Minimizer::SetFunction(), ROOT::Math::DistSampler::SetFunction(), ROOT::Math::GeneticMinimizer::SetFunction(), ROOT::Fit::FitResult::SetModelFunction(), SetParameters(), SetParsLimits(), showEventSample(), ROOT::Math::GSLSimAnnealing::Solve(), stlLoader(), stressTF1(), TChi2ExtendedFitData::TChi2ExtendedFitData(), TChi2FitData::TChi2FitData(), test1DObjects(), test2DObjects(), testBinDataData1D(), testBinDataData1DInt(), testBinDataData2D(), testBinDataData2DInt(), testBinDataData3D(), testBinDataData3DInt(), testChebyQuad(), StatFunction< Func, FuncQ, NPAR, NPARQ >::TestDerivative(), testFit(), testFitters(), testGraphFit(), testHisto1DFit(), testHisto1DPolFit(), testHisto2DFit(), testIntegPerf(), testIntegration(), StatFunction< Func, FuncQ, NPAR, NPARQ >::TestInverse1(), StatFunction< Func, FuncQ, NPAR, NPARQ >::TestInverse2(), testMinimization1D(), testNewMinimizer(), testRootFinder(), testSparseData1DFull(), testSparseData1DSparse(), testSparseData2DFull(), testSparseData2DSparse(), testSparseData3DFull(), testSparseData3DSparse(), testUnBin1DFit(), testUnBinnedFit(), TListAndSTL(), TrueMinimum(), TSpline3::TSpline3(), TSpline5::TSpline5(), TwoHistoFit2D(), TTreePlayer::UnbinnedFit(), ROOT::WriteReadRawRuleFunc(), and ROOT::WriteReadRuleFunc().
int main | ( | void | ) |
Definition at line 54 of file stressTF1.cxx.
References E.
Referenced by VectorTest< Dim >::check(), StatFunction< Func, FuncQ, NPAR, NPARQ >::Test(), testBetaFunction(), TestDerivative(), testGammaFunction(), TestIntegral(), TestMaxMin(), and TestRoot().
int stressTF1 | ( | ) |
Definition at line 219 of file stressTF1.cxx.
References func(), par, TFormula::SetParameters(), sumTime, TestDerivative(), TestIntegral(), TestMaxMin(), TestRoot(), XMAX, and XMIN.
Referenced by main().
int TestDerivative | ( | TF1 * | f1 | ) |
Definition at line 155 of file stressTF1.cxx.
References TMath::Cos(), TF1::Derivative(), i, j, kTRUE, PrintStatus(), REP, sumTime, TNORM, w, x, XMAX, and XMIN.
Referenced by stressTF1().
int TestIntegral | ( | TF1 * | f1 | ) |
Definition at line 184 of file stressTF1.cxx.
References TMath::Cos(), i, TF1::Integral(), j, kTRUE, PrintStatus(), REP, sumTime, TNORM, w, x, XMAX, and XMIN.
Referenced by stressTF1().
int TestMaxMin | ( | TF1 * | f1 | ) |
Definition at line 118 of file stressTF1.cxx.
References TF1::GetMaximumX(), TF1::GetMinimumX(), j, kTRUE, ncall, TMath::Pi(), PrintStatus(), REP, sumTime, TNORM, w, x, XMAX, and XMIN.
Referenced by stressTF1().
int TestRoot | ( | TF1 * | f1 | ) |
Definition at line 76 of file stressTF1.cxx.
References TF1::GetX(), j, kTRUE, TMath::Pi(), PrintStatus(), REP, root, sumTime, TNORM, w, x, XMAX, and XMIN.
Referenced by stressTF1().
int ncall = 0 |
Definition at line 20 of file stressTF1.cxx.
Referenced by func(), ROOT::Math::IntegratorMultiDim::IntegratorMultiDim(), TMinuit::mnscan(), and TestMaxMin().
Definition at line 15 of file stressTF1.cxx.
Referenced by TestDerivative(), TestIntegral(), TestMaxMin(), and TestRoot().
Definition at line 18 of file stressTF1.cxx.
Referenced by stressTF1(), TestDerivative(), TestIntegral(), TestMaxMin(), and TestRoot().
Definition at line 16 of file stressTF1.cxx.
Referenced by TestDerivative(), TestIntegral(), TestMaxMin(), and TestRoot().
Definition at line 13 of file stressTF1.cxx.
Referenced by DrawFunction(), stressTF1(), TestDerivative(), TestIntegral(), TestMaxMin(), and TestRoot().
Definition at line 13 of file stressTF1.cxx.
Referenced by DrawFunction(), stressTF1(), TestDerivative(), TestIntegral(), TestMaxMin(), and TestRoot().