RooStats::HypoTestResult Class Reference

#include <HypoTestResult.h>

Inheritance diagram for RooStats::HypoTestResult:

TNamed TNamed TObject TObject TObject TObject RooStats::HybridResult RooStats::HybridResult List of all members.

Public Member Functions

 HypoTestResult (const char *name=0)
 HypoTestResult (const char *name, Double_t nullp, Double_t altp)
virtual ~HypoTestResult ()
virtual void Append (const HypoTestResult *other)
virtual Double_t NullPValue () const
virtual Double_t AlternatePValue () const
virtual Double_t CLb () const
virtual Double_t CLsplusb () const
virtual Double_t CLs () const
virtual Double_t Significance () const
SamplingDistributionGetNullDistribution (void) const
SamplingDistributionGetAltDistribution (void) const
Double_t GetTestStatisticData (void) const
Bool_t HasTestStatisticData (void) const
void SetAltDistribution (SamplingDistribution *alt)
void SetNullDistribution (SamplingDistribution *null)
void SetTestStatisticData (const Double_t tsd)
void SetPValueIsRightTail (Bool_t pr)
Bool_t GetPValueIsRightTail (void) const
Double_t CLbError () const
 The error on the "confidence level" of the null hypothesis.
Double_t CLsplusbError () const
 The error on the "confidence level" of the alternative hypothesis.
Double_t CLsError () const
 The error on the ratio CLs+b/CLb.
Double_t NullPValueError () const
void Print (const Option_t *="") const
 HypoTestResult (const char *name=0)
 HypoTestResult (const char *name, Double_t nullp, Double_t altp)
virtual ~HypoTestResult ()
virtual void Append (const HypoTestResult *other)
virtual Double_t NullPValue () const
virtual Double_t AlternatePValue () const
virtual Double_t CLb () const
virtual Double_t CLsplusb () const
virtual Double_t CLs () const
virtual Double_t Significance () const
SamplingDistributionGetNullDistribution (void) const
SamplingDistributionGetAltDistribution (void) const
Double_t GetTestStatisticData (void) const
Bool_t HasTestStatisticData (void) const
void SetAltDistribution (SamplingDistribution *alt)
void SetNullDistribution (SamplingDistribution *null)
void SetTestStatisticData (const Double_t tsd)
void SetPValueIsRightTail (Bool_t pr)
Bool_t GetPValueIsRightTail (void) const
Double_t CLbError () const
 The error on the "confidence level" of the null hypothesis.
Double_t CLsplusbError () const
 The error on the "confidence level" of the alternative hypothesis.
Double_t CLsError () const
 The error on the ratio CLs+b/CLb.
Double_t NullPValueError () const
void Print (const Option_t *="") const

Protected Attributes

Double_t fNullPValue
Double_t fAlternatePValue
Double_t fTestStatisticData
SamplingDistributionfNullDistr
SamplingDistributionfAltDistr
Bool_t fPValueIsRightTail
SamplingDistributionfNullDistr
SamplingDistributionfAltDistr

Private Member Functions

void UpdatePValue (const SamplingDistribution *distr, Double_t *pvalue, Bool_t pIsRightTail)
void UpdatePValue (const SamplingDistribution *distr, Double_t *pvalue, Bool_t pIsRightTail)

Detailed Description

Definition at line 28 of file HypoTestResult.h.


Constructor & Destructor Documentation

HypoTestResult::HypoTestResult ( const char *  name = 0  )  [explicit]

Definition at line 56 of file HypoTestResult.cxx.

HypoTestResult::HypoTestResult ( const char *  name,
Double_t  nullp,
Double_t  altp 
)

Definition at line 68 of file HypoTestResult.cxx.

HypoTestResult::~HypoTestResult (  )  [virtual]

Definition at line 80 of file HypoTestResult.cxx.

RooStats::HypoTestResult::HypoTestResult ( const char *  name = 0  )  [explicit]

RooStats::HypoTestResult::HypoTestResult ( const char *  name,
Double_t  nullp,
Double_t  altp 
)

virtual RooStats::HypoTestResult::~HypoTestResult (  )  [virtual]


Member Function Documentation

void HypoTestResult::Append ( const HypoTestResult other  )  [virtual]

Definition at line 87 of file HypoTestResult.cxx.

References RooStats::SamplingDistribution::Add(), fAltDistr, fAlternatePValue, fNullDistr, fNullPValue, fPValueIsRightTail, fTestStatisticData, GetAltDistribution(), GetNullDistribution(), GetTestStatisticData(), IsNaN, and UpdatePValue().

virtual Double_t RooStats::HypoTestResult::NullPValue (  )  const [inline, virtual]

Definition at line 45 of file HypoTestResult.h.

References fNullPValue.

Referenced by CLb(), DoHypothesisTest(), NullPValueError(), Print(), rs_numberCountingCombination_observed(), and Significance().

virtual Double_t RooStats::HypoTestResult::AlternatePValue (  )  const [inline, virtual]

Definition at line 48 of file HypoTestResult.h.

References fAlternatePValue.

Referenced by CLsplusb().

virtual Double_t RooStats::HypoTestResult::CLb (  )  const [inline, virtual]

Definition at line 51 of file HypoTestResult.h.

References NullPValue().

Referenced by CLbError(), CLs(), CLsError(), and Print().

virtual Double_t RooStats::HypoTestResult::CLsplusb (  )  const [inline, virtual]

Definition at line 54 of file HypoTestResult.h.

References AlternatePValue().

Referenced by CLs(), CLsplusbError(), and Print().

virtual Double_t RooStats::HypoTestResult::CLs (  )  const [inline, virtual]

Definition at line 57 of file HypoTestResult.h.

References CLb(), and CLsplusb().

Referenced by CLsError(), and Print().

virtual Double_t RooStats::HypoTestResult::Significance (  )  const [inline, virtual]

Definition at line 68 of file HypoTestResult.h.

References NullPValue(), and RooStats::PValueToSignificance().

Referenced by DoHypothesisTest(), Print(), and rs_numberCountingCombination_observed().

SamplingDistribution* RooStats::HypoTestResult::GetNullDistribution ( void   )  const [inline]

Definition at line 70 of file HypoTestResult.h.

References fNullDistr.

Referenced by Append().

SamplingDistribution* RooStats::HypoTestResult::GetAltDistribution ( void   )  const [inline]

Definition at line 71 of file HypoTestResult.h.

References fAltDistr.

Referenced by Append().

Double_t RooStats::HypoTestResult::GetTestStatisticData ( void   )  const [inline]

Definition at line 72 of file HypoTestResult.h.

References fTestStatisticData.

Referenced by Append().

Bool_t HypoTestResult::HasTestStatisticData ( void   )  const

Definition at line 136 of file HypoTestResult.cxx.

References fTestStatisticData, and IsNaN.

Referenced by CLbError(), CLsplusbError(), NullPValueError(), and Print().

void HypoTestResult::SetAltDistribution ( SamplingDistribution alt  ) 

Definition at line 111 of file HypoTestResult.cxx.

References fAltDistr, fAlternatePValue, fPValueIsRightTail, and UpdatePValue().

void HypoTestResult::SetNullDistribution ( SamplingDistribution null  ) 

Definition at line 116 of file HypoTestResult.cxx.

References fNullDistr, fNullPValue, fPValueIsRightTail, TMVA::null(), and UpdatePValue().

void HypoTestResult::SetTestStatisticData ( const Double_t  tsd  ) 

Definition at line 121 of file HypoTestResult.cxx.

References fAltDistr, fAlternatePValue, fNullDistr, fNullPValue, fPValueIsRightTail, fTestStatisticData, and UpdatePValue().

void HypoTestResult::SetPValueIsRightTail ( Bool_t  pr  ) 

Definition at line 128 of file HypoTestResult.cxx.

References fAltDistr, fAlternatePValue, fNullDistr, fNullPValue, fPValueIsRightTail, and UpdatePValue().

Bool_t RooStats::HypoTestResult::GetPValueIsRightTail ( void   )  const [inline]

Definition at line 80 of file HypoTestResult.h.

References fPValueIsRightTail.

Double_t HypoTestResult::CLbError (  )  const

The error on the "confidence level" of the null hypothesis.

Definition at line 177 of file HypoTestResult.cxx.

References CLb(), entries, fNullDistr, RooStats::SamplingDistribution::GetSampleWeights(), HasTestStatisticData(), i, size_t, and sqrt().

Referenced by CLsError(), and Print().

Double_t HypoTestResult::CLsplusbError (  )  const

The error on the "confidence level" of the alternative hypothesis.

Definition at line 212 of file HypoTestResult.cxx.

References CLsplusb(), entries, fAltDistr, RooStats::SamplingDistribution::GetSampleWeights(), HasTestStatisticData(), i, size_t, and sqrt().

Referenced by CLsError(), and Print().

Double_t HypoTestResult::CLsError (  )  const

The error on the ratio CLs+b/CLb.

Definition at line 248 of file HypoTestResult.cxx.

References CLb(), CLbError(), CLs(), CLsplusbError(), fAltDistr, fNullDistr, RootCsg::infinity, pow(), and TMath::Sqrt().

Referenced by Print().

Double_t HypoTestResult::NullPValueError (  )  const

Definition at line 140 of file HypoTestResult.cxx.

References entries, fNullDistr, RooStats::SamplingDistribution::GetSampleWeights(), HasTestStatisticData(), i, NullPValue(), size_t, and sqrt().

Referenced by Print().

void RooStats::HypoTestResult::Print ( const Option_t = ""  )  const [inline]

Definition at line 94 of file HypoTestResult.h.

References CLb(), CLbError(), CLs(), CLsError(), CLsplusb(), CLsplusbError(), fAltDistr, fNullDistr, fTestStatisticData, TNamed::GetName(), RooStats::SamplingDistribution::GetSize(), HasTestStatisticData(), NullPValue(), NullPValueError(), and Significance().

void HypoTestResult::UpdatePValue ( const SamplingDistribution distr,
Double_t pvalue,
Bool_t  pIsRightTail 
) [private]

Definition at line 273 of file HypoTestResult.cxx.

References distr(), fPValueIsRightTail, fTestStatisticData, RooNumber::infinity(), IsNaN, kFALSE, and kTRUE.

Referenced by Append(), SetAltDistribution(), SetNullDistribution(), SetPValueIsRightTail(), and SetTestStatisticData().

virtual void RooStats::HypoTestResult::Append ( const HypoTestResult other  )  [virtual]

virtual Double_t RooStats::HypoTestResult::NullPValue (  )  const [inline, virtual]

Definition at line 45 of file HypoTestResult.h.

References fNullPValue.

virtual Double_t RooStats::HypoTestResult::AlternatePValue (  )  const [inline, virtual]

Definition at line 48 of file HypoTestResult.h.

References fAlternatePValue.

virtual Double_t RooStats::HypoTestResult::CLb (  )  const [inline, virtual]

Definition at line 51 of file HypoTestResult.h.

References NullPValue().

virtual Double_t RooStats::HypoTestResult::CLsplusb (  )  const [inline, virtual]

Definition at line 54 of file HypoTestResult.h.

References AlternatePValue().

virtual Double_t RooStats::HypoTestResult::CLs (  )  const [inline, virtual]

Definition at line 57 of file HypoTestResult.h.

References CLb(), and CLsplusb().

virtual Double_t RooStats::HypoTestResult::Significance (  )  const [inline, virtual]

Definition at line 68 of file HypoTestResult.h.

References NullPValue(), and RooStats::PValueToSignificance().

SamplingDistribution* RooStats::HypoTestResult::GetNullDistribution ( void   )  const [inline]

Definition at line 70 of file HypoTestResult.h.

References fNullDistr.

SamplingDistribution* RooStats::HypoTestResult::GetAltDistribution ( void   )  const [inline]

Definition at line 71 of file HypoTestResult.h.

References fAltDistr.

Double_t RooStats::HypoTestResult::GetTestStatisticData ( void   )  const [inline]

Definition at line 72 of file HypoTestResult.h.

References fTestStatisticData.

Bool_t RooStats::HypoTestResult::HasTestStatisticData ( void   )  const

void RooStats::HypoTestResult::SetAltDistribution ( SamplingDistribution alt  ) 

void RooStats::HypoTestResult::SetNullDistribution ( SamplingDistribution null  ) 

void RooStats::HypoTestResult::SetTestStatisticData ( const Double_t  tsd  ) 

void RooStats::HypoTestResult::SetPValueIsRightTail ( Bool_t  pr  ) 

Bool_t RooStats::HypoTestResult::GetPValueIsRightTail ( void   )  const [inline]

Definition at line 80 of file HypoTestResult.h.

References fPValueIsRightTail.

Double_t RooStats::HypoTestResult::CLbError (  )  const

The error on the "confidence level" of the null hypothesis.

Double_t RooStats::HypoTestResult::CLsplusbError (  )  const

The error on the "confidence level" of the alternative hypothesis.

Double_t RooStats::HypoTestResult::CLsError (  )  const

The error on the ratio CLs+b/CLb.

Double_t RooStats::HypoTestResult::NullPValueError (  )  const

void RooStats::HypoTestResult::Print ( const Option_t = ""  )  const [inline]

Definition at line 94 of file HypoTestResult.h.

References CLb(), CLbError(), CLs(), CLsError(), CLsplusb(), CLsplusbError(), fAltDistr, fNullDistr, fTestStatisticData, TNamed::GetName(), RooStats::SamplingDistribution::GetSize(), HasTestStatisticData(), NullPValue(), NullPValueError(), and Significance().

void RooStats::HypoTestResult::UpdatePValue ( const SamplingDistribution distr,
Double_t pvalue,
Bool_t  pIsRightTail 
) [private]


Member Data Documentation

Double_t RooStats::HypoTestResult::fNullPValue [mutable, protected]

Definition at line 124 of file HypoTestResult.h.

Referenced by Append(), NullPValue(), SetNullDistribution(), SetPValueIsRightTail(), and SetTestStatisticData().

Double_t RooStats::HypoTestResult::fAlternatePValue [mutable, protected]

Definition at line 125 of file HypoTestResult.h.

Referenced by AlternatePValue(), Append(), SetAltDistribution(), SetPValueIsRightTail(), and SetTestStatisticData().

Double_t RooStats::HypoTestResult::fTestStatisticData [protected]

Definition at line 126 of file HypoTestResult.h.

Referenced by Append(), GetTestStatisticData(), HasTestStatisticData(), Print(), SetTestStatisticData(), and UpdatePValue().

SamplingDistribution* RooStats::HypoTestResult::fNullDistr [protected]

Definition at line 127 of file HypoTestResult.h.

Referenced by Append(), CLbError(), CLsError(), GetNullDistribution(), NullPValueError(), Print(), SetNullDistribution(), SetPValueIsRightTail(), and SetTestStatisticData().

SamplingDistribution* RooStats::HypoTestResult::fAltDistr [protected]

Definition at line 128 of file HypoTestResult.h.

Referenced by Append(), CLsError(), CLsplusbError(), GetAltDistribution(), Print(), SetAltDistribution(), SetPValueIsRightTail(), and SetTestStatisticData().

Bool_t RooStats::HypoTestResult::fPValueIsRightTail [protected]

Definition at line 129 of file HypoTestResult.h.

Referenced by Append(), GetPValueIsRightTail(), SetAltDistribution(), SetNullDistribution(), SetPValueIsRightTail(), SetTestStatisticData(), and UpdatePValue().

SamplingDistribution* RooStats::HypoTestResult::fNullDistr [protected]

Definition at line 127 of file HypoTestResult.h.

SamplingDistribution* RooStats::HypoTestResult::fAltDistr [protected]

Definition at line 128 of file HypoTestResult.h.


The documentation for this class was generated from the following files:
Generated on Tue Jul 5 16:56:56 2011 for ROOT_528-00b_version by  doxygen 1.5.1