template<typename TDistribution, uint32 NCOMP>
struct cugar::Mixture< TDistribution, NCOMP >
A statically-sized mixture of parametric distributions
- Template Parameters
-
TDistribution | the underlying distribution type |
NCOMP | the number of components, each of type TDistribution |
|
CUGAR_HOST_DEVICE | Mixture () |
|
CUGAR_HOST_DEVICE uint32 | size () const |
|
CUGAR_HOST_DEVICE float | density (const Vector2f x) const |
|
CUGAR_HOST_DEVICE float | density (const uint32 i, const Vector2f x) const |
|
CUGAR_HOST_DEVICE const distribution_type & | component (const uint32 i) const |
|
CUGAR_HOST_DEVICE distribution_type & | component (const uint32 i) |
|
CUGAR_HOST_DEVICE void | set_component (const uint32 i, const distribution_type &c, const float w) |
|
CUGAR_HOST_DEVICE void | set_component (const uint32 i, const distribution_type &c) |
|
CUGAR_HOST_DEVICE float | weight (const uint32 i) const |
|
CUGAR_HOST_DEVICE void | set_weight (const uint32 i, const float w) |
|