Clarisse 5.0 SP8 SDK  5.0.5.8.0
 All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
Classes | Public Member Functions | Static Public Attributes | List of all members
PiecewiseLinearPDF< T, Regular > Class Template Reference

Classes

struct  Element
 

Public Member Functions

 PiecewiseLinearPDF (const size_t size=0)
 
void reset (size_t size)
 
void resize (size_t size)
 
void build ()
 
void set_unnormalised_mass (const T &new_mass)
 
unnormalised_mass () const
 
mass (const T &x_lower, const T &x_upper) const
 
unnormalised_mass (const T &x_lower, const T &x_upper) const
 
bool sample (T xi, const T &x_lower, const T &x_upper, T &sample_x, T &sample_pdf) const
 
evaluate (const T &x) const
 
evaluate (const T &x, const T &x_lower, const T &x_upper) const
 
const Elementoperator[] (const uint32_t idx) const
 
Elementoperator[] (const uint32_t idx)
 
size_t size () const
 
bool empty () const
 

Static Public Attributes

static constexpr T mass_threshold = T(1e-10)