1#ifndef _chi_math_cdfsampler_h
2#define _chi_math_cdfsampler_h
61 std::vector<double>& in_cdf,
66 bool Sample(
double x, std::pair<int,int>& range);
CDFSampler(std::vector< double > &in_cdf, int subdiv_factor=AUTO_SUBDIV, int final_res=AUTO_FINERES)
std::vector< SubIntvl * > sub_intvls_
static const int AUTO_SUBDIV
std::vector< double > & ref_cdf_
static const int AUTO_FINERES
bool Sample(double x, std::pair< int, int > &range)
std::vector< double > & ref_cdf
std::vector< SubIntvl * > sub_intvls
SubIntvl(std::string offset, int ibin, int fbin, std::vector< double > &in_cdf, int subdiv_factor=10, int final_res=10, bool inhibit=false)