| 
|   | UT_Cdf () | 
|   | 
|   | UT_Cdf (T *data, const int *res, const bool ©data) | 
|   | 
| template<class F >  | 
|   | UT_Cdf (const F &ftor, const int *res) | 
|   | 
|   | UT_Cdf (const int *res) | 
|   | 
|   | ~UT_Cdf () | 
|   | 
| void  | clear () | 
|   | Clear associated storage.  More...
  | 
|   | 
| void  | resize (const int *res) | 
|   | 
| void  | setRawArray (T *data, const bool ©data) | 
|   | 
| template<class F >  | 
| void  | setRawArray (const F &ftor) | 
|   | 
| T *  | getRawArray () | 
|   | 
| void  | build () | 
|   | 
| void  | sample (const T *u, T *dval) const  | 
|   | 
| void  | sample (const T *u, T *dval, T &pdf) const  | 
|   | 
| void  | sample (const T *u, int *didx) const  | 
|   | Same as above but produces an exact index.  More...
  | 
|   | 
| void  | sample (const T *u, int *didx, T *doff, T &pdf) const  | 
|   | 
| void  | evaluatePdf (const T *u, T &pdf) const  | 
|   | Evaluate the pdf at the given index.  More...
  | 
|   | 
| const T &  | getSum () const  | 
|   | Get the sum over all image values.  More...
  | 
|   | 
| const T &  | getISum () const  | 
|   | 
| const T &  | getScaling () const  | 
|   | Get the average image value.  More...
  | 
|   | 
| const T &  | getIScaling () const  | 
|   | 
| int  | getDim () const  | 
|   | 
| const int *  | getRes () const  | 
|   | 
| const int &  | getRes (int dim) const  | 
|   | 
| void  | dump () const  | 
|   | 
| size_t  | getMemoryUsage () const  | 
|   | 
template<int N = 1, typename T = float, class S = UT_Cdf_default_search_t>
class UT_Cdf< N, T, S >
Definition at line 338 of file UT_Cdf.h.
 
template<int N, typename T , class S > 
 
Draw an importance sample from the cdf. u and dval must have 'N' entries. In this version, dval is the resulting sample value for each dimension in the range [0, 1). 
Definition at line 648 of file UT_Cdf.h.