Classes | Public Types | Public Member Functions | Public Attributes | Static Public Attributes
bsta_weight_functor< mixture_, typename vpdt_enable_if< vpdt_is_mixture< mixture_ > >::type > 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.

Public Attributes

unsigned int idx

Static Public Attributes

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

Detailed Description

template<class mixture_>
class bsta_weight_functor< mixture_, typename vpdt_enable_if< vpdt_is_mixture< mixture_ > >::type >

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

Note:
the distribution must be a mixture

Definition at line 367 of file bsta_basic_functors.h.


Member Typedef Documentation

template<class mixture_ >
typedef T bsta_weight_functor< mixture_, typename vpdt_enable_if< vpdt_is_mixture< mixture_ > >::type >::return_T

Definition at line 372 of file bsta_basic_functors.h.

template<class mixture_ >
typedef return_T bsta_weight_functor< mixture_, typename vpdt_enable_if< vpdt_is_mixture< mixture_ > >::type >::return_type

Definition at line 373 of file bsta_basic_functors.h.

template<class mixture_ >
typedef mixture_::math_type bsta_weight_functor< mixture_, typename vpdt_enable_if< vpdt_is_mixture< mixture_ > >::type >::T

Definition at line 371 of file bsta_basic_functors.h.


Member Enumeration Documentation

template<class mixture_ >
anonymous enum
Enumerator:
return_dim 

Definition at line 374 of file bsta_basic_functors.h.


Constructor & Destructor Documentation

template<class mixture_ >
bsta_weight_functor< mixture_, typename vpdt_enable_if< vpdt_is_mixture< mixture_ > >::type >::bsta_weight_functor ( unsigned int  index = 0) [inline]

Constructor.

Definition at line 385 of file bsta_basic_functors.h.


Member Function Documentation

template<class mixture_ >
bool bsta_weight_functor< mixture_, typename vpdt_enable_if< vpdt_is_mixture< mixture_ > >::type >::operator() ( const mixture_ &  mix,
return_T retval 
) const [inline]

The main function.

Definition at line 388 of file bsta_basic_functors.h.


Member Data Documentation

template<class mixture_ >
unsigned int bsta_weight_functor< mixture_, typename vpdt_enable_if< vpdt_is_mixture< mixture_ > >::type >::idx

Definition at line 397 of file bsta_basic_functors.h.

template<class mixture_ >
const bool bsta_weight_functor< mixture_, typename vpdt_enable_if< vpdt_is_mixture< mixture_ > >::type >::valid_functor = true [static]

is this functor valid for its distribution type.

Definition at line 376 of file bsta_basic_functors.h.


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