|
| template<class OutputIt > |
| void | UTfillCdfIdentity (OutputIt cdf, const int res) |
| | Fill a linear cdf with res entries of a linear gradient. More...
|
| |
| template<class S , class InputIt , typename T > |
| int | UTsampleCdf (InputIt cdf_begin, const int &res, const T &u) |
| |
| template<class S , class InputIt , typename T > |
| int | UTsampleCdf (InputIt cdf_begin, const int &res, const T &u, T &dval, T &pdf) |
| |
| template<class InputIt , typename T > |
| void | UTsampleCdf (InputIt cdf_begin, const int &res, const int &i, T &pdf) |
| | Sample the pdf from a linear cdf at index i with res entries. More...
|
| |
| template<typename T > |
| T | UTsampleTrapezoidPdf (T u, T d0, T d1) |
| |
| template<class InputIt , class OutputIt > |
| void | UTcreatePdf (InputIt values_begin, InputIt values_end, OutputIt pdf_begin) |
| | Create a PDF from a range of values. More...
|
| |
| template<class InputIt , class OutputIt > |
| void | UTcreateCdf (InputIt values_begin, InputIt values_end, OutputIt cdf_begin) |
| | Create a CDF from a range of values. More...
|
| |
template<typename T >
| T UTsampleTrapezoidPdf |
( |
T |
u, |
|
|
T |
d0, |
|
|
T |
d1 |
|
) |
| |
|
inline |
Find the value x from 0 to 1 where the area from 0 to x under the trapezoid (0,0),(1,0),(1,d1),(0,d0) is portion u of the total area.
Definition at line 281 of file UT_Cdf.h.