Classes | Public Types | Public Member Functions | Static Public Attributes
bsta_weight_functor< mixture_, Disambiguate > Class Template Reference

A functor to return the weight of the component with given index. More...

#include <bsta_basic_functors.h>

List of all members.

Classes

struct  rebind
 rebind this functor to another distribution type. More...

Public Types

enum  { return_dim = 1 }
typedef mixture_::math_type T
typedef T return_T
typedef return_T return_type

Public Member Functions

 bsta_weight_functor (unsigned int index=0)
 Constructor.
bool operator() (const mixture_ &mix, return_T &retval) const
 The main function.

Static Public Attributes

static const bool valid_functor = false
 is this functor valid for its distribution type.

Detailed Description

template<class mixture_, class Disambiguate = void>
class bsta_weight_functor< mixture_, Disambiguate >

A functor to return the weight of the component with given index.

"Disambiguate" is for compatibility with vpdl/vpdt.

Note:
the distribution must be a mixture

Definition at line 337 of file bsta_basic_functors.h.


Member Typedef Documentation

template<class mixture_ , class Disambiguate = void>
typedef T bsta_weight_functor< mixture_, Disambiguate >::return_T

Definition at line 341 of file bsta_basic_functors.h.

template<class mixture_ , class Disambiguate = void>
typedef return_T bsta_weight_functor< mixture_, Disambiguate >::return_type

Definition at line 342 of file bsta_basic_functors.h.

template<class mixture_ , class Disambiguate = void>
typedef mixture_::math_type bsta_weight_functor< mixture_, Disambiguate >::T

Definition at line 340 of file bsta_basic_functors.h.


Member Enumeration Documentation

template<class mixture_ , class Disambiguate = void>
anonymous enum
Enumerator:
return_dim 

Definition at line 343 of file bsta_basic_functors.h.


Constructor & Destructor Documentation

template<class mixture_ , class Disambiguate = void>
bsta_weight_functor< mixture_, Disambiguate >::bsta_weight_functor ( unsigned int  index = 0) [inline]

Constructor.

Definition at line 354 of file bsta_basic_functors.h.


Member Function Documentation

template<class mixture_ , class Disambiguate = void>
bool bsta_weight_functor< mixture_, Disambiguate >::operator() ( const mixture_ &  mix,
return_T retval 
) const [inline]

The main function.

Definition at line 357 of file bsta_basic_functors.h.


Member Data Documentation

template<class mixture_ , class Disambiguate = void>
const bool bsta_weight_functor< mixture_, Disambiguate >::valid_functor = false [static]

is this functor valid for its distribution type.

Definition at line 345 of file bsta_basic_functors.h.


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