Chi-Tech
chi_math::CDFSampler::SubIntvl Struct Reference

#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
 

Detailed Description

Sub-structure for sub-intervals

Definition at line 49 of file cdfsampler.h.

Constructor & Destructor Documentation

◆ SubIntvl()

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.

Member Function Documentation

◆ Sample()

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.

Field Documentation

◆ cbin_f

int chi_math::CDFSampler::SubIntvl::cbin_f

Definition at line 52 of file cdfsampler.h.

◆ cbin_i

int chi_math::CDFSampler::SubIntvl::cbin_i

Definition at line 51 of file cdfsampler.h.

◆ inhibited

bool chi_math::CDFSampler::SubIntvl::inhibited

Definition at line 54 of file cdfsampler.h.

◆ offset

std::string chi_math::CDFSampler::SubIntvl::offset

Definition at line 58 of file cdfsampler.h.

◆ ref_cdf

std::vector<double>& chi_math::CDFSampler::SubIntvl::ref_cdf

Definition at line 53 of file cdfsampler.h.

◆ sub_intvls

std::vector<SubIntvl*> chi_math::CDFSampler::SubIntvl::sub_intvls

Definition at line 56 of file cdfsampler.h.


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