Logo ROOT  
Reference Guide
 
Loading...
Searching...
No Matches
BinomialNeymanInterval< Sorter > Class Template Reference

template<typename Sorter>
class BinomialNeymanInterval< Sorter >

Implement noncentral binomial confidence intervals using the Neyman construction.

The Sorter class gives the ordering of points, i.e. it must be a functor implementing a greater-than relationship between two prob_helper instances. See feldman_cousins for an example.

Definition at line 70 of file TEfficiencyHelper.h.

Public Member Functions

 BinomialNeymanInterval ()
 
void Calculate (const double X, const double n)
 
bool Find_rho_set (const double rho, const int ntot, int &x_l, int &x_r) const
 
void Init (double alpha)
 
double Lower () const
 
bool Neyman (const int ntot, const int nrho, double *rho, double *x_l, double *x_r)
 
double Upper () const
 

Private Member Functions

void Set (double l, double u)
 

Private Attributes

double fAlpha
 
double fLower
 
Sorter fSorter
 
double fUpper
 

#include </home/sftnight/build/workspace/root-makedoc-v630/rootspi/rdoc/src/v6-30-00-patches/hist/hist/src/TEfficiencyHelper.h>

Constructor & Destructor Documentation

◆ BinomialNeymanInterval()

template<typename Sorter >
BinomialNeymanInterval< Sorter >::BinomialNeymanInterval ( )
inline

Definition at line 73 of file TEfficiencyHelper.h.

Member Function Documentation

◆ Calculate()

template<typename Sorter >
void BinomialNeymanInterval< Sorter >::Calculate ( const double  X,
const double  n 
)
inline

Definition at line 128 of file TEfficiencyHelper.h.

◆ Find_rho_set()

template<typename Sorter >
bool BinomialNeymanInterval< Sorter >::Find_rho_set ( const double  rho,
const int  ntot,
int x_l,
int x_r 
) const
inline

Definition at line 85 of file TEfficiencyHelper.h.

◆ Init()

template<typename Sorter >
void BinomialNeymanInterval< Sorter >::Init ( double  alpha)
inline

Definition at line 79 of file TEfficiencyHelper.h.

◆ Lower()

template<typename Sorter >
double BinomialNeymanInterval< Sorter >::Lower ( ) const
inline

Definition at line 163 of file TEfficiencyHelper.h.

◆ Neyman()

template<typename Sorter >
bool BinomialNeymanInterval< Sorter >::Neyman ( const int  ntot,
const int  nrho,
double rho,
double x_l,
double x_r 
)
inline

Definition at line 115 of file TEfficiencyHelper.h.

◆ Set()

template<typename Sorter >
void BinomialNeymanInterval< Sorter >::Set ( double  l,
double  u 
)
inlineprivate

Definition at line 174 of file TEfficiencyHelper.h.

◆ Upper()

template<typename Sorter >
double BinomialNeymanInterval< Sorter >::Upper ( ) const
inline

Definition at line 164 of file TEfficiencyHelper.h.

Member Data Documentation

◆ fAlpha

template<typename Sorter >
double BinomialNeymanInterval< Sorter >::fAlpha
private

Definition at line 172 of file TEfficiencyHelper.h.

◆ fLower

template<typename Sorter >
double BinomialNeymanInterval< Sorter >::fLower
private

Definition at line 169 of file TEfficiencyHelper.h.

◆ fSorter

template<typename Sorter >
Sorter BinomialNeymanInterval< Sorter >::fSorter
private

Definition at line 167 of file TEfficiencyHelper.h.

◆ fUpper

template<typename Sorter >
double BinomialNeymanInterval< Sorter >::fUpper
private

Definition at line 170 of file TEfficiencyHelper.h.

  • hist/hist/src/TEfficiencyHelper.h