A struct to hold the component distributions and weights. More...
Public Member Functions | |
component () | |
Constructor. | |
component (const vpdl_distribution< T, n > &d, const T &w=T(0)) | |
Constructor. | |
component (const component &other) | |
Copy Constructor. | |
bool | operator< (const component &rhs) const |
Used to sort by decreasing weight. | |
Public Attributes | |
vcl_auto_ptr < vpdl_distribution< T, n > > | distribution |
The distribution. | |
T | weight |
The weight. |
A struct to hold the component distributions and weights.
This class is private and should not be used outside of the mixture. Dynamic memory is used to allow for polymorphic distributions. However, this use of memory is self-contained and private so the user should not be able to introduce a memory leak
Definition at line 42 of file vpdl_mixture.h.
vpdl_mixture< T, n >::component::component | ( | ) | [inline] |
Constructor.
Definition at line 45 of file vpdl_mixture.h.
vpdl_mixture< T, n >::component::component | ( | const vpdl_distribution< T, n > & | d, |
const T & | w = T(0) |
||
) | [inline] |
Constructor.
Definition at line 47 of file vpdl_mixture.h.
vpdl_mixture< T, n >::component::component | ( | const component & | other | ) | [inline] |
Copy Constructor.
Definition at line 50 of file vpdl_mixture.h.
bool vpdl_mixture< T, n >::component::operator< | ( | const component & | rhs | ) | const [inline] |
Used to sort by decreasing weight.
Definition at line 54 of file vpdl_mixture.h.
vcl_auto_ptr<vpdl_distribution<T,n> > vpdl_mixture< T, n >::component::distribution |
The distribution.
Definition at line 60 of file vpdl_mixture.h.
T vpdl_mixture< T, n >::component::weight |
The weight.
Definition at line 62 of file vpdl_mixture.h.