2 #ifndef vpdt_distribution_accessors_h_ 3 #define vpdt_distribution_accessors_h_ 19 template <
class dist_type>
31 template <
class other_dist>
39 retval = d.dimension();
46 template <
class dist_type>
58 template <
class other_dist>
66 d.compute_mean(retval);
73 template <
class dist_type>
85 template <
class other_dist>
93 d.compute_covar(retval);
100 template <
class dist_type>
112 template <
class other_dist>
120 retval = d.norm_const();
126 #endif // vpdt_distribution_accessors_h_ dist_type distribution_type
the distribution operated on by the functor.
vpdt_mean_accessor< other_dist > other
vpdt_norm_const_accessor< other_dist > other
vpdt_covar_accessor< other_dist > other
dist_type::field_type return_type
the functor return type.
bool operator()(const dist_type &d, return_type &retval) const
The main function.
rebind this functor to another distribution type.
An accessor to return the covariance of the distribution.
An accessor to return the variable dimension of the distribution.
static const bool valid_functor
is this functor valid for its distribution type.
An accessor to return the normalization constant of the distribution.
bool operator()(const dist_type &d, return_type &retval) const
The main function.
An accessor to return the mean of the distribution.
unsigned int return_type
the functor return type.
vpdt_field_traits< field_type >::matrix_type matrix_type
the data type used for square matrices.
dist_type distribution_type
the distribution operated on by the functor.
vpdt_dist_traits< dist_type >::scalar_type return_type
the functor return type.
static const bool valid_functor
is this functor valid for its distribution type.
vpdt_dimension_accessor< other_dist > other
rebind this functor to another distribution type.
bool operator()(const dist_type &d, return_type &retval) const
The main function.
dist_type distribution_type
the distribution operated on by the functor.
rebind this functor to another distribution type.
rebind this functor to another distribution type.
specialized template trait classes for properties of a distribution type
vpdt_field_traits< field_type >::scalar_type scalar_type
The type used for scalar operations.
static const bool valid_functor
is this functor valid for its distribution type.
vpdt_dist_traits< dist_type >::matrix_type return_type
the functor return type.
dist_type distribution_type
the distribution operated on by the functor.
static const bool valid_functor
is this functor valid for its distribution type.
bool operator()(const dist_type &d, return_type &retval) const
The main function.