bsta_weight_functor< mixture_, Disambiguate > Class Template Reference

#include <bsta_basic_functors.h>

List of all members.


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 328 of file bsta_basic_functors.h.


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.

Classes

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

Member Typedef Documentation

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

Definition at line 331 of file bsta_basic_functors.h.

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

Definition at line 332 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 333 of file bsta_basic_functors.h.


Member Enumeration Documentation

template<class mixture_, class Disambiguate = void>
anonymous enum

Enumerator:
return_dim 

Definition at line 334 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 345 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 348 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 336 of file bsta_basic_functors.h.


The documentation for this class was generated from the following file:
Generated on Mon Mar 8 05:30:35 2010 for contrib/brl/bbas/bsta by  doxygen 1.5.1