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

#include <defm-bones.hpp>

Inheritance diagram for DEFM:
Collaboration diagram for DEFM:

Public Member Functions

 DEFM (int *id, int *y, double *x, size_t id_length, size_t y_ncol, size_t x_ncol, size_t m_order, bool copy_data=true, bool column_major=true)
 
DEFMModelget_model ()
 
void init ()
 
void simulate (std::vector< double > par, int *y_out)
 
size_t get_n_y () const
 
size_t get_n_obs () const
 
size_t get_n_covars () const
 
size_t get_m_order () const
 
size_t get_n_rows () const
 
const int * get_Y () const
 
const int * get_ID () const
 
const double * get_X () const
 
barry::FreqTable< int > motif_census (std::vector< size_t > idx)
 
std::vector< double > logodds (const std::vector< double > &par, size_t i, size_t j)
 
void set_names (std::vector< std::string > Y_names_, std::vector< std::string > X_names_)
 
const std::vector< std::string > & get_Y_names () const
 
const std::vector< std::string > & get_X_names () const
 
void print () const
 
std::vector< bool > is_motif ()
 
bool get_column_major () const noexcept
 

Detailed Description

Definition at line 4 of file defm-bones.hpp.

Constructor & Destructor Documentation

◆ DEFM()

DEFM::DEFM ( int *  id,
int *  y,
double *  x,
size_t  id_length,
size_t  y_ncol,
size_t  x_ncol,
size_t  m_order,
bool  copy_data = true,
bool  column_major = true 
)
inline

Definition at line 108 of file defm-meat.hpp.

Member Function Documentation

◆ get_column_major()

bool DEFM::get_column_major ( ) const
inlinenoexcept

Definition at line 458 of file defm-meat.hpp.

◆ get_ID()

const int * DEFM::get_ID ( ) const
inline

Definition at line 316 of file defm-meat.hpp.

◆ get_m_order()

size_t DEFM::get_m_order ( ) const
inline

Definition at line 301 of file defm-meat.hpp.

◆ get_model()

DEFMModel& DEFM::get_model ( )
inline

Definition at line 49 of file defm-bones.hpp.

◆ get_n_covars()

size_t DEFM::get_n_covars ( ) const
inline

Definition at line 296 of file defm-meat.hpp.

◆ get_n_obs()

size_t DEFM::get_n_obs ( ) const
inline

Definition at line 291 of file defm-meat.hpp.

◆ get_n_rows()

size_t DEFM::get_n_rows ( ) const
inline

Definition at line 306 of file defm-meat.hpp.

◆ get_n_y()

size_t DEFM::get_n_y ( ) const
inline

Definition at line 286 of file defm-meat.hpp.

◆ get_X()

const double * DEFM::get_X ( ) const
inline

Definition at line 321 of file defm-meat.hpp.

◆ get_X_names()

const std::vector< std::string > & DEFM::get_X_names ( ) const
inline

Definition at line 431 of file defm-meat.hpp.

◆ get_Y()

const int * DEFM::get_Y ( ) const
inline

Definition at line 311 of file defm-meat.hpp.

◆ get_Y_names()

const std::vector< std::string > & DEFM::get_Y_names ( ) const
inline

Definition at line 427 of file defm-meat.hpp.

◆ init()

void DEFM::init ( )
inline

Definition at line 218 of file defm-meat.hpp.

◆ is_motif()

std::vector< bool > DEFM::is_motif ( )
inline

Definition at line 448 of file defm-meat.hpp.

◆ logodds()

std::vector< double > DEFM::logodds ( const std::vector< double > &  par,
size_t  i,
size_t  j 
)
inline

Definition at line 365 of file defm-meat.hpp.

◆ motif_census()

barry::FreqTable< int > DEFM::motif_census ( std::vector< size_t >  idx)
inline

Definition at line 327 of file defm-meat.hpp.

◆ print()

void DEFM::print ( ) const
inline

Definition at line 435 of file defm-meat.hpp.

◆ set_names()

void DEFM::set_names ( std::vector< std::string >  Y_names_,
std::vector< std::string >  X_names_ 
)
inline

Definition at line 410 of file defm-meat.hpp.

◆ simulate()

void DEFM::simulate ( std::vector< double >  par,
int *  y_out 
)
inline

Definition at line 39 of file defm-meat.hpp.


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