Public Member Functions | Public Attributes
bsta_mixture< dist_ >::component Struct Reference

A struct to hold the component distributions and weights. More...

List of all members.

Public Member Functions

 component ()
 Constructor.
 component (const dist_ &d, const T &w=T(0))
 Constructor.
bool operator< (const component &rhs) const
 Used to sort by decreasing weight.

Public Attributes

dist_ distribution
 The distribution.
T weight
 The weight.

Detailed Description

template<class dist_>
struct bsta_mixture< dist_ >::component

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 45 of file bsta_mixture.h.


Constructor & Destructor Documentation

template<class dist_>
bsta_mixture< dist_ >::component::component ( ) [inline]

Constructor.

Definition at line 48 of file bsta_mixture.h.

template<class dist_>
bsta_mixture< dist_ >::component::component ( const dist_ &  d,
const T w = T(0) 
) [inline]

Constructor.

Definition at line 50 of file bsta_mixture.h.


Member Function Documentation

template<class dist_>
bool bsta_mixture< dist_ >::component::operator< ( const component rhs) const [inline]

Used to sort by decreasing weight.

Definition at line 54 of file bsta_mixture.h.


Member Data Documentation

template<class dist_>
dist_ bsta_mixture< dist_ >::component::distribution

The distribution.

Definition at line 60 of file bsta_mixture.h.

template<class dist_>
T bsta_mixture< dist_ >::component::weight

The weight.

Definition at line 62 of file bsta_mixture.h.


The documentation for this struct was generated from the following file: