BornAgain  1.19.79
Open-source research software to simulate and fit neutron and x-ray reflectometry and grazing-incidence small-angle scattering
ROOT::Minuit2::MinosError Class Reference

Description

Class holding the result of Minos (lower and upper values) for a specific parameter

Definition at line 25 of file MinosError.h.

Collaboration diagram for ROOT::Minuit2::MinosError:
[legend]

Public Member Functions

 MinosError ()
 
 MinosError (const MinosError &err)
 
 MinosError (unsigned int par, double min, const MnCross &low, const MnCross &up)
 
 ~MinosError ()
 
bool AtLowerLimit () const
 
bool AtLowerMaxFcn () const
 
bool AtUpperLimit () const
 
bool AtUpperMaxFcn () const
 
bool IsValid () const
 
double Lower () const
 
bool LowerNewMin () const
 
const MnUserParameterStateLowerState () const
 
bool LowerValid () const
 
double Min () const
 
unsigned int NFcn () const
 
std::pair< double, double > operator() () const
 
MinosErroroperator() (const MinosError &err)
 
MinosErroroperator= (const MinosError &)=default
 
unsigned int Parameter () const
 
double Upper () const
 
bool UpperNewMin () const
 
const MnUserParameterStateUpperState () const
 
bool UpperValid () const
 

Private Attributes

MnCross fLower
 
double fMinValue
 
unsigned int fParameter
 
MnCross fUpper
 

Constructor & Destructor Documentation

◆ MinosError() [1/3]

ROOT::Minuit2::MinosError::MinosError ( )
inline

Definition at line 29 of file MinosError.h.

29 : fParameter(0), fMinValue(0.), fUpper(MnCross()), fLower(MnCross()) {}
unsigned int fParameter
Definition: MinosError.h:75

◆ MinosError() [2/3]

ROOT::Minuit2::MinosError::MinosError ( unsigned int  par,
double  min,
const MnCross low,
const MnCross up 
)
inline

Definition at line 31 of file MinosError.h.

31 : fParameter(par), fMinValue(min), fUpper(up), fLower(low) {}

◆ ~MinosError()

ROOT::Minuit2::MinosError::~MinosError ( )
inline

Definition at line 33 of file MinosError.h.

33 {}

◆ MinosError() [3/3]

ROOT::Minuit2::MinosError::MinosError ( const MinosError err)
inline

Definition at line 35 of file MinosError.h.

35 : fParameter(err.fParameter), fMinValue(err.fMinValue), fUpper(err.fUpper), fLower(err.fLower) {}

Member Function Documentation

◆ AtLowerLimit()

bool ROOT::Minuit2::MinosError::AtLowerLimit ( ) const
inline

Definition at line 64 of file MinosError.h.

64 {return fLower.AtLimit();}
bool AtLimit() const
Definition: MnCross.h:64

References ROOT::Minuit2::MnCross::AtLimit(), and fLower.

Referenced by Lower().

Here is the call graph for this function:

◆ AtLowerMaxFcn()

bool ROOT::Minuit2::MinosError::AtLowerMaxFcn ( ) const
inline

Definition at line 66 of file MinosError.h.

66 {return fLower.AtMaxFcn();}
bool AtMaxFcn() const
Definition: MnCross.h:65

References ROOT::Minuit2::MnCross::AtMaxFcn(), and fLower.

Here is the call graph for this function:

◆ AtUpperLimit()

bool ROOT::Minuit2::MinosError::AtUpperLimit ( ) const
inline

Definition at line 65 of file MinosError.h.

65 {return fUpper.AtLimit();}

References ROOT::Minuit2::MnCross::AtLimit(), and fUpper.

Referenced by Upper().

Here is the call graph for this function:

◆ AtUpperMaxFcn()

bool ROOT::Minuit2::MinosError::AtUpperMaxFcn ( ) const
inline

Definition at line 67 of file MinosError.h.

67 {return fUpper.AtMaxFcn();}

References ROOT::Minuit2::MnCross::AtMaxFcn(), and fUpper.

Here is the call graph for this function:

◆ IsValid()

bool ROOT::Minuit2::MinosError::IsValid ( ) const
inline

Definition at line 61 of file MinosError.h.

61 {return fLower.IsValid() && fUpper.IsValid();}
bool IsValid() const
Definition: MnCross.h:63

References fLower, fUpper, and ROOT::Minuit2::MnCross::IsValid().

Here is the call graph for this function:

◆ Lower()

double ROOT::Minuit2::MinosError::Lower ( ) const
inline

Definition at line 50 of file MinosError.h.

50  {
52  return -1.*LowerState().Error(Parameter())*(1. + fLower.Value());
53  }
unsigned int Parameter() const
Definition: MinosError.h:58
bool AtLowerLimit() const
Definition: MinosError.h:64
const MnUserParameterState & LowerState() const
Definition: MinosError.h:59
double Value() const
Definition: MnCross.h:61
double Error(unsigned int) const
const MinuitParameter & Parameter(unsigned int i) const

References AtLowerLimit(), ROOT::Minuit2::MnUserParameterState::Error(), fLower, fMinValue, ROOT::Minuit2::MinuitParameter::LowerLimit(), LowerState(), Parameter(), ROOT::Minuit2::MnUserParameterState::Parameter(), and ROOT::Minuit2::MnCross::Value().

Referenced by operator()().

Here is the call graph for this function:

◆ LowerNewMin()

bool ROOT::Minuit2::MinosError::LowerNewMin ( ) const
inline

Definition at line 68 of file MinosError.h.

68 {return fLower.NewMinimum();}
bool NewMinimum() const
Definition: MnCross.h:66

References fLower, and ROOT::Minuit2::MnCross::NewMinimum().

Here is the call graph for this function:

◆ LowerState()

const MnUserParameterState& ROOT::Minuit2::MinosError::LowerState ( ) const
inline

Definition at line 59 of file MinosError.h.

59 {return fLower.State();}
const MnUserParameterState & State() const
Definition: MnCross.h:62

References fLower, and ROOT::Minuit2::MnCross::State().

Referenced by Lower().

Here is the call graph for this function:

◆ LowerValid()

bool ROOT::Minuit2::MinosError::LowerValid ( ) const
inline

Definition at line 62 of file MinosError.h.

62 {return fLower.IsValid();}

References fLower, and ROOT::Minuit2::MnCross::IsValid().

Here is the call graph for this function:

◆ Min()

double ROOT::Minuit2::MinosError::Min ( ) const
inline

Definition at line 71 of file MinosError.h.

71 {return fMinValue;}

References fMinValue.

Referenced by ROOT::Minuit2::ContoursError::XMin(), and ROOT::Minuit2::ContoursError::YMin().

◆ NFcn()

unsigned int ROOT::Minuit2::MinosError::NFcn ( ) const
inline

Definition at line 70 of file MinosError.h.

70 {return fUpper.NFcn() + fLower.NFcn();}
unsigned int NFcn() const
Definition: MnCross.h:67

References fLower, fUpper, and ROOT::Minuit2::MnCross::NFcn().

Here is the call graph for this function:

◆ operator()() [1/2]

std::pair<double,double> ROOT::Minuit2::MinosError::operator() ( ) const
inline

Definition at line 47 of file MinosError.h.

47  {
48  return std::pair<double,double>(Lower(), Upper());
49  }
double Upper() const
Definition: MinosError.h:54
double Lower() const
Definition: MinosError.h:50

References Lower(), and Upper().

Here is the call graph for this function:

◆ operator()() [2/2]

MinosError& ROOT::Minuit2::MinosError::operator() ( const MinosError err)
inline

Definition at line 39 of file MinosError.h.

39  {
40  fParameter = err.fParameter;
41  fMinValue = err.fMinValue;
42  fUpper = err.fUpper;
43  fLower = err.fLower;
44  return *this;
45  }

References fLower, fMinValue, fParameter, and fUpper.

◆ operator=()

MinosError& ROOT::Minuit2::MinosError::operator= ( const MinosError )
default

◆ Parameter()

unsigned int ROOT::Minuit2::MinosError::Parameter ( ) const
inline

Definition at line 58 of file MinosError.h.

58 {return fParameter;}

References fParameter.

Referenced by Lower(), and Upper().

◆ Upper()

double ROOT::Minuit2::MinosError::Upper ( ) const
inline

Definition at line 54 of file MinosError.h.

54  {
56  return UpperState().Error(Parameter())*(1. + fUpper.Value());
57  }
bool AtUpperLimit() const
Definition: MinosError.h:65
const MnUserParameterState & UpperState() const
Definition: MinosError.h:60

References AtUpperLimit(), ROOT::Minuit2::MnUserParameterState::Error(), fMinValue, fUpper, Parameter(), ROOT::Minuit2::MnUserParameterState::Parameter(), ROOT::Minuit2::MinuitParameter::UpperLimit(), UpperState(), and ROOT::Minuit2::MnCross::Value().

Referenced by operator()().

Here is the call graph for this function:

◆ UpperNewMin()

bool ROOT::Minuit2::MinosError::UpperNewMin ( ) const
inline

Definition at line 69 of file MinosError.h.

69 {return fUpper.NewMinimum();}

References fUpper, and ROOT::Minuit2::MnCross::NewMinimum().

Here is the call graph for this function:

◆ UpperState()

const MnUserParameterState& ROOT::Minuit2::MinosError::UpperState ( ) const
inline

Definition at line 60 of file MinosError.h.

60 {return fUpper.State();}

References fUpper, and ROOT::Minuit2::MnCross::State().

Referenced by Upper().

Here is the call graph for this function:

◆ UpperValid()

bool ROOT::Minuit2::MinosError::UpperValid ( ) const
inline

Definition at line 63 of file MinosError.h.

63 {return fUpper.IsValid();}

References fUpper, and ROOT::Minuit2::MnCross::IsValid().

Here is the call graph for this function:

Member Data Documentation

◆ fLower

MnCross ROOT::Minuit2::MinosError::fLower
private

◆ fMinValue

double ROOT::Minuit2::MinosError::fMinValue
private

Definition at line 76 of file MinosError.h.

Referenced by Lower(), Min(), operator()(), and Upper().

◆ fParameter

unsigned int ROOT::Minuit2::MinosError::fParameter
private

Definition at line 75 of file MinosError.h.

Referenced by operator()(), and Parameter().

◆ fUpper

MnCross ROOT::Minuit2::MinosError::fUpper
private

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