MINT2
GeneralisedPareto.h
Go to the documentation of this file.
1 #ifndef GENERALISED_PARETO_HH
2 #define GENERALISED_PARETO_HH
3 // author: Jonas Rademacker (Jonas.Rademacker@bristol.ac.uk)
4 // status: Mon 9 Feb 2009 19:17:56 GMT
5 // assuming threshold == 0, shift parameters if necessary
6 
7 #include <vector>
8 #include "Mint/Minimisable.h"
9 #include "Mint/FitParameter.h"
10 
11 namespace MINT{
12  double generalisedPareto_cumulative(double y, double xi, double sigma_bar);
13 
14  double generalisedPareto_pdf(double y, double xi, double sigma_bar);
15  double generalisedPareto_logPdf(double y, double xi, double sigma_bar);
16  double generalisedPareto_xiFromMeanRMS(double mean, double rms);
17 
18  double generalisedPareto_sigmaFromMeanRMS(double mean, double rms);
19 
20  double generalisedPareto_yFromCL(double CL, double xi, double sigma_bar);
21 
22  double generalisedPareto_limit(double xi, double sigma_bar);
23 
24  double generalisedPareto_estimateMaximum(const std::vector<double>& input
25  , double CL = 0.001);
26  double generalisedPareto_estimateMaximum(std::vector<double> input
27  , double CL
28  , double& actualMax
29  , double& paretoMax
30  , int numEvents = -9999
31  );
32 
33  class minimisePareto : public Minimisable{
35  std::vector<double>& _data;
36  double _threshold;
38  public:
39  minimisePareto(std::vector<double>& data, double threshold
40  , double xiInit, double sigInit);
41  virtual double getVal();
42  double getXi() const;
43  double getSigma() const;
44  };
45 
46 }//namespace MINT
47 #endif
48 //
49 
double generalisedPareto_yFromCL(double CL, double xi, double sigma_bar)
double generalisedPareto_sigmaFromMeanRMS(double mean, double rms)
double generalisedPareto_xiFromMeanRMS(double mean, double rms)
double generalisedPareto_estimateMaximum(const std::vector< double > &input, double CL=0.001)
double generalisedPareto_pdf(double y, double xi, double sigma_bar)
static MinuitParameterSet _mps
minimisePareto(std::vector< double > &data, double threshold, double xiInit, double sigInit)
std::vector< double > & _data
double generalisedPareto_cumulative(double y, double xi, double sigma_bar)
double generalisedPareto_limit(double xi, double sigma_bar)
double generalisedPareto_logPdf(double y, double xi, double sigma_bar)
virtual double getVal()