bsta_weighted_sum_data_functor< mixture_, functor_ > Class Template Reference

#include <bsta_basic_functors.h>

List of all members.


Detailed Description

template<class mixture_, class functor_>
class bsta_weighted_sum_data_functor< mixture_, functor_ >

A functor to apply another functor with data to each distribution and produce a weighted sum.

Note:
the distribution must be a mixture

Definition at line 546 of file bsta_basic_functors.h.


Public Types

enum  { return_dim = functor_::return_dim }
typedef mixture_::math_type T
typedef functor_::return_T return_T
typedef return_T return_type
typedef mixture_::vector_type vector_

Public Member Functions

 bsta_weighted_sum_data_functor ()
 Constructor.
 bsta_weighted_sum_data_functor (const functor_ &f)
 Constructor.
bool operator() (const mixture_ &mix, const vector_ &sample, return_T &retval) const
 The main function.

Public Attributes

functor_ functor
 The functor to apply.

Member Typedef Documentation

template<class mixture_, class functor_>
typedef mixture_::math_type bsta_weighted_sum_data_functor< mixture_, functor_ >::T

Definition at line 549 of file bsta_basic_functors.h.

template<class mixture_, class functor_>
typedef functor_::return_T bsta_weighted_sum_data_functor< mixture_, functor_ >::return_T

Definition at line 550 of file bsta_basic_functors.h.

template<class mixture_, class functor_>
typedef return_T bsta_weighted_sum_data_functor< mixture_, functor_ >::return_type

Definition at line 551 of file bsta_basic_functors.h.

template<class mixture_, class functor_>
typedef mixture_::vector_type bsta_weighted_sum_data_functor< mixture_, functor_ >::vector_

Definition at line 552 of file bsta_basic_functors.h.


Member Enumeration Documentation

template<class mixture_, class functor_>
anonymous enum

Enumerator:
return_dim 

Definition at line 553 of file bsta_basic_functors.h.


Constructor & Destructor Documentation

template<class mixture_, class functor_>
bsta_weighted_sum_data_functor< mixture_, functor_ >::bsta_weighted_sum_data_functor (  )  [inline]

Constructor.

Definition at line 556 of file bsta_basic_functors.h.

template<class mixture_, class functor_>
bsta_weighted_sum_data_functor< mixture_, functor_ >::bsta_weighted_sum_data_functor ( const functor_ &  f  )  [inline]

Constructor.

Definition at line 558 of file bsta_basic_functors.h.


Member Function Documentation

template<class mixture_, class functor_>
bool bsta_weighted_sum_data_functor< mixture_, functor_ >::operator() ( const mixture_ &  mix,
const vector_ sample,
return_T retval 
) const [inline]

The main function.

Definition at line 562 of file bsta_basic_functors.h.


Member Data Documentation

template<class mixture_, class functor_>
functor_ bsta_weighted_sum_data_functor< mixture_, functor_ >::functor

The functor to apply.

Definition at line 582 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