MINT2
Public Member Functions | Private Attributes | Static Private Attributes | List of all members
MINT::minimisePareto Class Reference

#include <GeneralisedPareto.h>

Inheritance diagram for MINT::minimisePareto:
MINT::Minimisable MINT::IMinimisable

Public Member Functions

 minimisePareto (std::vector< double > &data, double threshold, double xiInit, double sigInit)
 
virtual double getVal ()
 
double getXi () const
 
double getSigma () const
 
- Public Member Functions inherited from MINT::Minimisable
 Minimisable (MinuitParameterSet *mps=0)
 
 Minimisable (const Minimisable &other)
 
virtual ~Minimisable ()
 
void setPset (MinuitParameterSet *mps)
 
MinuitParameterSetgetParSet ()
 
virtual void beginFit ()
 
virtual void parametersChanged ()
 
virtual void endFit ()
 
double getNewVal ()
 
- Public Member Functions inherited from MINT::IMinimisable
virtual void Gradient (std::vector< double > &grad)
 
virtual bool useAnalyticGradient ()
 
virtual void setUseAnalyticGradient (bool useAnalyticGradient)
 
virtual ~IMinimisable ()
 

Private Attributes

std::vector< double > & _data
 
double _threshold
 
FitParameter _xi
 
FitParameter _sigma
 

Static Private Attributes

static MinuitParameterSet _mps
 

Detailed Description

Definition at line 33 of file GeneralisedPareto.h.

Constructor & Destructor Documentation

◆ minimisePareto()

MINT::minimisePareto::minimisePareto ( std::vector< double > &  data,
double  threshold,
double  xiInit,
double  sigInit 
)

Definition at line 77 of file GeneralisedPareto.cpp.

79  : _data(data)
80  , _threshold(threshold)
81  , _xi("xi", 0, xiInit, fabs(xiInit)/2.0 + 0.1, 0, 0, &_mps)
82  , _sigma("sigma", 0, fabs(sigInit), fabs(sigInit)/2.0 + 0.1, 0, 0, &_mps)
83 {
84  this->setPset(&_mps);
85 }
static MinuitParameterSet _mps
void setPset(MinuitParameterSet *mps)
Definition: Minimisable.cpp:21
std::vector< double > & _data

Member Function Documentation

◆ getSigma()

double MINT::minimisePareto::getSigma ( ) const

Definition at line 96 of file GeneralisedPareto.cpp.

96 { return _sigma;}

◆ getVal()

double MINT::minimisePareto::getVal ( )
virtual

Implements MINT::Minimisable.

Definition at line 86 of file GeneralisedPareto.cpp.

86  {
87  double sum=0;
88  for(unsigned int i=0; i < _data.size(); i++){
89  double x = _data[i] - _threshold;
90  if(x > 0) sum -= 2*generalisedPareto_logPdf(x, _xi, _sigma);
91  }
92  return sum;
93 }
std::vector< double > & _data
double generalisedPareto_logPdf(double y, double xi, double sigma_bar)

◆ getXi()

double MINT::minimisePareto::getXi ( ) const

Definition at line 95 of file GeneralisedPareto.cpp.

95 { return _xi;}

Member Data Documentation

◆ _data

std::vector<double>& MINT::minimisePareto::_data
private

Definition at line 35 of file GeneralisedPareto.h.

◆ _mps

MinuitParameterSet MINT::minimisePareto::_mps
staticprivate

Definition at line 34 of file GeneralisedPareto.h.

◆ _sigma

FitParameter MINT::minimisePareto::_sigma
private

Definition at line 37 of file GeneralisedPareto.h.

◆ _threshold

double MINT::minimisePareto::_threshold
private

Definition at line 36 of file GeneralisedPareto.h.

◆ _xi

FitParameter MINT::minimisePareto::_xi
private

Definition at line 37 of file GeneralisedPareto.h.


The documentation for this class was generated from the following files: