Attach a "number of observations" variable to any distribution. More...
#include <vpdt_num_obs.h>
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. |
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.
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.
typedef dist_t vpdt_num_obs< dist_t >::parent_type |
define the parent type.
Definition at line 28 of file vpdt_num_obs.h.
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.
vpdt_num_obs< dist_t >::vpdt_num_obs | ( | ) | [inline] |
Constructor.
Definition at line 33 of file vpdt_num_obs.h.
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.
T vpdt_num_obs< dist_t >::num_observations |
The number of observations.
Definition at line 40 of file vpdt_num_obs.h.