barry: Your go-to motif accountant  0.0-1
Full enumeration of sample space and fast count of sufficient statistics for binary arrays
DEFMData Class Reference

Data class for DEFM arrays. More...

#include <defm-types.hpp>

Public Member Functions

 DEFMData ()
 
 DEFMData (DEFMArray *array_, const double *covariates_, size_t obs_start_, size_t X_ncol_, size_t X_nrow_, bool column_major_)
 Constructor. More...
 
double operator() (size_t i, size_t j) const
 Access to the row (i) colum (j) data. More...
 
double at (size_t i, size_t j) const
 
size_t ncol () const
 
size_t nrow () const
 
void print () const
 
 ~DEFMData ()
 

Public Attributes

DEFMArrayarray
 
const double * covariates
 Vector of covariates (complete vector) More...
 
size_t obs_start
 Index of the observation in the data. More...
 
size_t X_ncol
 Number of columns in the array of covariates. More...
 
size_t X_nrow
 Number of rows in the array of covariates. More...
 
std::vector< size_t > covar_sort
 
std::vector< size_t > covar_used
 Value where the sorting of the covariates is stored. More...
 
bool column_major
 Vector indicating which covariates are included in the model. More...
 

Detailed Description

Data class for DEFM arrays.

This holds information pointing to the data array, including information regarding the number of observations, the time slices of the observation, and the number of covariates in the data.

Definition at line 16 of file defm-types.hpp.


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