#include <JacknifeQuantile.h>
Classes | |
struct | point |
Public Types | |
enum | Method { Simple, Sectioning, Jacknife } |
Public Member Functions | |
std::pair< double, double > | quantileAndError (double quantile, Method method) |
QuantileCalculator () | |
QuantileCalculator (const std::vector< double > &values, const std::vector< double > &weights=std::vector< double >()) | |
QuantileCalculator (const std::vector< float > &values, const std::vector< float > &weights=std::vector< float >()) | |
QuantileCalculator (const RooAbsData &data, const char *varName, int firstEntry=0, int lastEntry=-1) | |
void | randomizePoints () |
Randomize points before sectioning. More... | |
~QuantileCalculator () | |
Private Member Functions | |
int | guessPartitions (int size, double quantile) |
template<typename T > | |
void | import (const std::vector< T > &values, const std::vector< T > &weights) |
void | partition (int m, bool doJacknife) |
void | quantiles (double quantile, bool doJacknife) |
Private Attributes | |
std::vector< point > | points_ |
std::vector< float > | quantiles_ |
std::vector< double > | sumw_ |
Definition at line 5 of file JacknifeQuantile.h.
Enumerator | |
---|---|
Simple | |
Sectioning | |
Jacknife |
Definition at line 7 of file JacknifeQuantile.h.
QuantileCalculator::QuantileCalculator | ( | ) |
Definition at line 10 of file JacknifeQuantile.cc.
QuantileCalculator::~QuantileCalculator | ( | ) |
Definition at line 14 of file JacknifeQuantile.cc.
QuantileCalculator::QuantileCalculator | ( | const std::vector< double > & | values, |
const std::vector< double > & | weights = std::vector<double>() |
||
) |
Definition at line 18 of file JacknifeQuantile.cc.
References makeHLTPrescaleTable::values, and create_public_pileup_plots::weights.
QuantileCalculator::QuantileCalculator | ( | const std::vector< float > & | values, |
const std::vector< float > & | weights = std::vector<float>() |
||
) |
Definition at line 23 of file JacknifeQuantile.cc.
References makeHLTPrescaleTable::values, and create_public_pileup_plots::weights.
QuantileCalculator::QuantileCalculator | ( | const RooAbsData & | data, |
const char * | varName, | ||
int | firstEntry = 0 , |
||
int | lastEntry = -1 |
||
) |
Definition at line 28 of file JacknifeQuantile.cc.
References i, j, points_, runtimedef::set(), sumw_, and x.
|
private |
Definition at line 81 of file JacknifeQuantile.cc.
References gather_cfg::cout, min, and n.
Referenced by quantileAndError().
|
private |
|
private |
Definition at line 107 of file JacknifeQuantile.cc.
References alpha, lumiContext::fill, i, j, m, n, points_, and sumw_.
Referenced by quantileAndError().
std::pair< double, double > QuantileCalculator::quantileAndError | ( | double | quantile, |
Method | method | ||
) |
Definition at line 54 of file JacknifeQuantile.cc.
References guessPartitions(), i, Jacknife, m, partition(), points_, quantiles(), quantiles_, plotscripts::rms(), Sectioning, Simple, python.multivaluedict::sort(), and mathSSE::sqrt().
Referenced by MarkovChainMC::limitAndError(), and MarkovChainMC::limitFromChain().
|
private |
Definition at line 128 of file JacknifeQuantile.cc.
References i, j, m, n, points_, quantiles_, runtimedef::set(), sumw_, dtDQMClient_cfg::threshold, and w().
Referenced by quantileAndError().
void QuantileCalculator::randomizePoints | ( | ) |
Randomize points before sectioning.
Definition at line 49 of file JacknifeQuantile.cc.
References points_.
|
private |
Definition at line 23 of file JacknifeQuantile.h.
Referenced by import(), partition(), quantileAndError(), QuantileCalculator(), quantiles(), and randomizePoints().
|
private |
Definition at line 25 of file JacknifeQuantile.h.
Referenced by quantileAndError(), and quantiles().
|
private |
Definition at line 24 of file JacknifeQuantile.h.
Referenced by import(), partition(), QuantileCalculator(), and quantiles().