Public Types | Public Member Functions | Public Attributes
vpdt_num_obs< dist_t > Class Template Reference

Attach a "number of observations" variable to any distribution. More...

#include <vpdt_num_obs.h>

List of all members.

Public Types

typedef dist_t::field_type field_type
 the data type to represent a point in the field.
typedef dist_t parent_type
 define the parent type.
typedef vpdt_field_traits
< field_type >::scalar_type 
T
 define the scalar type (normally specified by template parameter T).

Public Member Functions

 vpdt_num_obs ()
 Constructor.
 vpdt_num_obs (const dist_t &d, const T &n_obs=T(0))
 Constructor - somewhat like a copy constructor.

Public Attributes

T num_observations
 The number of observations.

Detailed Description

template<class dist_t>
class vpdt_num_obs< dist_t >

Attach a "number of observations" variable to any distribution.

The number of observations is non-integral because there may be partial or weighted observations.

Definition at line 22 of file vpdt_num_obs.h.


Member Typedef Documentation

template<class dist_t >
typedef dist_t::field_type vpdt_num_obs< dist_t >::field_type

the data type to represent a point in the field.

Definition at line 26 of file vpdt_num_obs.h.

template<class dist_t >
typedef dist_t vpdt_num_obs< dist_t >::parent_type

define the parent type.

Definition at line 28 of file vpdt_num_obs.h.

template<class dist_t >
typedef vpdt_field_traits<field_type>::scalar_type vpdt_num_obs< dist_t >::T

define the scalar type (normally specified by template parameter T).

Definition at line 30 of file vpdt_num_obs.h.


Constructor & Destructor Documentation

template<class dist_t >
vpdt_num_obs< dist_t >::vpdt_num_obs ( ) [inline]

Constructor.

Definition at line 33 of file vpdt_num_obs.h.

template<class dist_t >
vpdt_num_obs< dist_t >::vpdt_num_obs ( const dist_t &  d,
const T n_obs = T(0) 
) [inline]

Constructor - somewhat like a copy constructor.

Definition at line 36 of file vpdt_num_obs.h.


Member Data Documentation

template<class dist_t >
T vpdt_num_obs< dist_t >::num_observations

The number of observations.

Definition at line 40 of file vpdt_num_obs.h.


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