BCHistogramFitter.h
46 BCHistogramFitter(const TH1& hist, const TF1& func, const std::string& name = "histogram_fitter_model");
double CalculatePValueLeastSquares(const std::vector< double > &par, bool weightExpect=true)
Calculate the p-value using approximate chi^2 distribution of squared difference for conventional wei...
Definition: BCHistogramFitter.cxx:206
virtual double LogLikelihood(const std::vector< double > ¶meters)
The log of the conditional probability.
Definition: BCHistogramFitter.cxx:65
void DrawFit(const std::string &options="HIST", bool flaglegend=false)
Draw the fit in the current pad.
Definition: BCHistogramFitter.cxx:109
BCHistogramFitter(const TH1 &hist, const TF1 &func, const std::string &name="histogram_fitter_model")
Constructor.
Definition: BCHistogramFitter.cxx:30
double CalculatePValueLikelihood(const std::vector< double > &par)
Calculate the p-value using approximate chi^2 distribution of scaled likelihood.
Definition: BCHistogramFitter.cxx:177
virtual double GraphCorrection(unsigned ibin) const
Take care of bin width when creating a graph from the fit function.
Definition: BCHistogramFitter.cxx:236
double CalculatePValueFast(const std::vector< double > &par, unsigned nIterations=100000)
Calculate the p-value using fast-MCMC and the likelihood as test statistic.
Definition: BCHistogramFitter.cxx:155