Chi-Tech
|
#include <cdfsampler.h>
Public Member Functions | |
SubIntvl (std::string offset, int ibin, int fbin, std::vector< double > &in_cdf, int subdiv_factor=10, int final_res=10, bool inhibit=false) | |
bool | Sample (double x, std::pair< int, int > &range) |
Data Fields | |
int | cbin_i |
int | cbin_f |
std::vector< double > & | ref_cdf |
bool | inhibited |
std::vector< SubIntvl * > | sub_intvls |
std::string | offset |
Sub-structure for sub-intervals
Definition at line 49 of file cdfsampler.h.
chi_math::CDFSampler::SubIntvl::SubIntvl | ( | std::string | offset, |
int | ibin, | ||
int | fbin, | ||
std::vector< double > & | in_cdf, | ||
int | subdiv_factor = 10 , |
||
int | final_res = 10 , |
||
bool | inhibit = false |
||
) |
Constructor for a sub interval
Definition at line 12 of file cdfsampler.cc.
bool chi_math::CDFSampler::SubIntvl::Sample | ( | double | x, |
std::pair< int, int > & | range | ||
) |
Sampling a sub-interval.
Definition at line 194 of file cdfsampler.cc.
int chi_math::CDFSampler::SubIntvl::cbin_f |
Definition at line 52 of file cdfsampler.h.
int chi_math::CDFSampler::SubIntvl::cbin_i |
Definition at line 51 of file cdfsampler.h.
bool chi_math::CDFSampler::SubIntvl::inhibited |
Definition at line 54 of file cdfsampler.h.
std::string chi_math::CDFSampler::SubIntvl::offset |
Definition at line 58 of file cdfsampler.h.
std::vector<double>& chi_math::CDFSampler::SubIntvl::ref_cdf |
Definition at line 53 of file cdfsampler.h.
std::vector<SubIntvl*> chi_math::CDFSampler::SubIntvl::sub_intvls |
Definition at line 56 of file cdfsampler.h.