Public Member Functions | Public Attributes | List of all members
vpdt_mixture_of< dist_t >::component Struct Reference

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

Public Member Functions

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

Public Attributes

component_type distribution
 The distribution. More...
 
T weight
 The weight. More...
 

Detailed Description

template<class dist_t>
struct vpdt_mixture_of< dist_t >::component

A struct to hold the component distributions and weights.

This class is private and should not be used outside of the mixture.

Definition at line 73 of file vpdt_mixture_of.h.

Constructor & Destructor Documentation

◆ component() [1/2]

template<class dist_t>
vpdt_mixture_of< dist_t >::component::component ( )
inline

Constructor.

Definition at line 76 of file vpdt_mixture_of.h.

◆ component() [2/2]

template<class dist_t>
vpdt_mixture_of< dist_t >::component::component ( const component_type d,
const T w = T(0) 
)
inline

Constructor.

Definition at line 78 of file vpdt_mixture_of.h.

Member Function Documentation

◆ operator<()

template<class dist_t>
bool vpdt_mixture_of< dist_t >::component::operator< ( const component rhs) const
inline

Used to sort by decreasing weight.

Definition at line 82 of file vpdt_mixture_of.h.

Member Data Documentation

◆ distribution

template<class dist_t>
component_type vpdt_mixture_of< dist_t >::component::distribution

The distribution.

Definition at line 88 of file vpdt_mixture_of.h.

◆ weight

template<class dist_t>
T vpdt_mixture_of< dist_t >::component::weight

The weight.

Definition at line 90 of file vpdt_mixture_of.h.


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