Public Types | Public Member Functions | Public Attributes | List of all members
vpdt_num_obs< dist_t > Class Template Reference

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

#include <vpdt_num_obs.h>

Inheritance diagram for vpdt_num_obs< dist_t >:
Inheritance graph
[legend]

Public Types

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

Public Member Functions

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

Public Attributes

T num_observations
 The number of observations. More...
 

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

◆ field_type

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.

◆ parent_type

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.

◆ T

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

◆ vpdt_num_obs() [1/2]

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

Constructor.

Definition at line 33 of file vpdt_num_obs.h.

◆ vpdt_num_obs() [2/2]

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

◆ num_observations

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: