Classes | Public Types | Public Member Functions | Static Public Attributes
bsta_var_functor< bsta_num_obs< bsta_gaussian_sphere< T, 1 > > > Class Template Reference

A functor to return the variance of the Gaussian. 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 = dist_::dimension }
typedef bsta_gaussian_sphere
< T, 1 > 
dist_
typedef dist_::vector_type vector_
typedef vector_ return_T
typedef return_T return_type

Public Member Functions

bool operator() (const dist_ &d, return_T &retval) const
 The main function.

Static Public Attributes

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

Detailed Description

template<class T>
class bsta_var_functor< bsta_num_obs< bsta_gaussian_sphere< T, 1 > > >

A functor to return the variance of the Gaussian.

Note:
the distribution must be a spherical Gaussian with one dimensions the default template does nothing. This solution is really just a hack. The correct solution requires is_base_of from Boost or TR1. This class should work for any derived class of bsta_gaussian_indep

Definition at line 217 of file bsta_basic_functors.h.


Member Typedef Documentation

template<class T >
typedef bsta_gaussian_sphere<T,1> bsta_var_functor< bsta_num_obs< bsta_gaussian_sphere< T, 1 > > >::dist_

Definition at line 220 of file bsta_basic_functors.h.

template<class T >
typedef vector_ bsta_var_functor< bsta_num_obs< bsta_gaussian_sphere< T, 1 > > >::return_T

Definition at line 222 of file bsta_basic_functors.h.

template<class T >
typedef return_T bsta_var_functor< bsta_num_obs< bsta_gaussian_sphere< T, 1 > > >::return_type

Definition at line 223 of file bsta_basic_functors.h.

Definition at line 221 of file bsta_basic_functors.h.


Member Enumeration Documentation

template<class T >
anonymous enum
Enumerator:
return_dim 

Definition at line 224 of file bsta_basic_functors.h.


Member Function Documentation

template<class T >
bool bsta_var_functor< bsta_num_obs< bsta_gaussian_sphere< T, 1 > > >::operator() ( const dist_ d,
return_T retval 
) const [inline]

The main function.

Definition at line 235 of file bsta_basic_functors.h.


Member Data Documentation

template<class T >
const bool bsta_var_functor< bsta_num_obs< bsta_gaussian_sphere< T, 1 > > >::valid_functor = true [static]

is this functor valid for its distribution type.

Definition at line 226 of file bsta_basic_functors.h.


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