List of all members | Public Member Functions | Private Types | Private Member Functions | Private Attributes
FdLightCollectionEfficiencyKG::Bootstrapper Class Reference

Estimate the uncertainty of the light-collection efficiency with the bootstrap method. More...

#include <Bootstrapper.h>

Public Member Functions

 Bootstrapper (const std::list< utl::TabulatedFunctionErrors > &data, const int verbosity=0)
 
const
utl::TabulatedFunctionErrors
GetMean ()
 
int GetVerbosity ()
 
bool MaxRelUncertaintyBelowThreshold (const double relUncertaintyThreshold, const double absValueThreshold=0.)
 
void SetVerbosity (const int verbosity)
 
 ~Bootstrapper ()
 

Private Types

enum  VarianceEstimator { eSampleVariance = 0, eSampleVarianceWeighted, eMedianAbsoluteDeviation }
 

Private Member Functions

void Bootstrap ()
 
double Mean (const std::vector< double > &samples)
 
std::pair< double, double > MeanWithUncertainty (const std::vector< double > &samples, const std::vector< double > &uncertainties, const VarianceEstimator est=eSampleVariance)
 
double Median (const std::vector< double > &sortedSamples)
 
double MedianAbsoluteDeviation (const std::vector< double > &samples, const double mean)
 
double SampleVariance (const std::vector< double > &samples, const double mean)
 
double WeightedMean (const std::vector< double > &samples, const std::vector< double > &uncertainties)
 
double WeightedSampleVariance (const std::vector< double > &samples, const std::vector< double > &uncertainties, const double mean)
 

Private Attributes

const std::list
< utl::TabulatedFunctionErrors > & 
fData
 
utl::TabulatedFunctionErrors fMean
 
int fVerbosity
 global verbosity flag More...
 

Detailed Description

Estimate the uncertainty of the light-collection efficiency with the bootstrap method.

Author
Steffen Mueller
Date
Sun May 2 12:30:00 CET 2010

Definition at line 29 of file Bootstrapper.h.

Member Enumeration Documentation

Enumerator
eSampleVariance 
eSampleVarianceWeighted 
eMedianAbsoluteDeviation 

Definition at line 44 of file Bootstrapper.h.

Constructor & Destructor Documentation

Bootstrapper::Bootstrapper ( const std::list< utl::TabulatedFunctionErrors > &  data,
const int  verbosity = 0 
)

Definition at line 33 of file Bootstrapper.cc.

References Bootstrap().

FdLightCollectionEfficiencyKG::Bootstrapper::~Bootstrapper ( )
inline

Definition at line 33 of file Bootstrapper.h.

Member Function Documentation

void Bootstrapper::Bootstrap ( )
private
const utl::TabulatedFunctionErrors& FdLightCollectionEfficiencyKG::Bootstrapper::GetMean ( )
inline
int FdLightCollectionEfficiencyKG::Bootstrapper::GetVerbosity ( )
inline

Definition at line 39 of file Bootstrapper.h.

References fVerbosity.

bool Bootstrapper::MaxRelUncertaintyBelowThreshold ( const double  relUncertaintyThreshold,
const double  absValueThreshold = 0. 
)
double Bootstrapper::Mean ( const std::vector< double > &  samples)
private

Definition at line 165 of file Bootstrapper.cc.

Referenced by MeanWithUncertainty().

std::pair< double, double > Bootstrapper::MeanWithUncertainty ( const std::vector< double > &  samples,
const std::vector< double > &  uncertainties,
const VarianceEstimator  est = eSampleVariance 
)
private
double Bootstrapper::Median ( const std::vector< double > &  sortedSamples)
private

Definition at line 237 of file Bootstrapper.cc.

Referenced by MedianAbsoluteDeviation().

double Bootstrapper::MedianAbsoluteDeviation ( const std::vector< double > &  samples,
const double  mean 
)
private

Definition at line 253 of file Bootstrapper.cc.

References Median().

Referenced by MeanWithUncertainty().

double Bootstrapper::SampleVariance ( const std::vector< double > &  samples,
const double  mean 
)
private

Definition at line 199 of file Bootstrapper.cc.

References std::pow().

Referenced by MeanWithUncertainty().

void FdLightCollectionEfficiencyKG::Bootstrapper::SetVerbosity ( const int  verbosity)
inline

Definition at line 38 of file Bootstrapper.h.

References fVerbosity.

double Bootstrapper::WeightedMean ( const std::vector< double > &  samples,
const std::vector< double > &  uncertainties 
)
private

Definition at line 179 of file Bootstrapper.cc.

Referenced by MeanWithUncertainty().

double Bootstrapper::WeightedSampleVariance ( const std::vector< double > &  samples,
const std::vector< double > &  uncertainties,
const double  mean 
)
private

Definition at line 213 of file Bootstrapper.cc.

References std::pow().

Referenced by MeanWithUncertainty().

Member Data Documentation

const std::list<utl::TabulatedFunctionErrors>& FdLightCollectionEfficiencyKG::Bootstrapper::fData
private

Definition at line 63 of file Bootstrapper.h.

Referenced by Bootstrap().

utl::TabulatedFunctionErrors FdLightCollectionEfficiencyKG::Bootstrapper::fMean
private

Definition at line 67 of file Bootstrapper.h.

Referenced by Bootstrap(), GetMean(), and MaxRelUncertaintyBelowThreshold().

int FdLightCollectionEfficiencyKG::Bootstrapper::fVerbosity
private

global verbosity flag

Definition at line 65 of file Bootstrapper.h.

Referenced by GetVerbosity(), MaxRelUncertaintyBelowThreshold(), and SetVerbosity().


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

, generated on Tue Sep 26 2023.