Fermat
|
A statically-sized mixture of parametric distributions
TDistribution | the underlying distribution type |
NCOMP | the number of components, each of type TDistribution |
#include <mixtures.h>
Public Types | |
typedef TDistribution | distribution_type |
Public Methods | |
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) |
Static Public Members | |
static const uint32 | NUM_COMPONENTS = NCOMP |
|
inline |
constructor
|
inline |
return the i-th component
i | component index |
|
inline |
return the i-th component
i | component index |
|
inline |
probability density function
x | sample location |
|
inline |
probability density function of the i-th component
x | sample location |
|
inline |
set the i-th component
i | component index |
|
inline |
set the i-th component
i | component index |
|
inline |
return the i-th component weight
i | component index |
|
inline |
size of the mixture
|
inline |
return the i-th component weight
i | component index |