2 #define DEFM_BONES_HPP 1
14 bool column_major =
true;
17 std::shared_ptr<std::vector< int >> Y_shared;
18 std::shared_ptr<std::vector< int >> ID_shared;
19 std::shared_ptr<std::vector< double >> X_shared;
29 std::vector< std::string > Y_names;
30 std::vector< std::string > X_names;
31 std::vector< size_t > start_end;
32 std::vector< size_t > model_ord;
45 bool copy_data =
true,
46 bool column_major =
true
55 void simulate(std::vector< double > par,
int * y_out);
63 const int *
get_Y()
const;
64 const int *
get_ID()
const;
65 const double *
get_X()
const;
68 std::vector< size_t > idx
72 const std::vector< double > & par,
78 std::vector< std::string > Y_names_,
79 std::vector< std::string > X_names_
82 const std::vector< std::string > &
get_Y_names()
const;
83 const std::vector< std::string > &
get_X_names()
const;
std::vector< bool > is_motif()
size_t get_n_covars() const
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)
const int * get_Y() const
size_t get_m_order() const
void set_names(std::vector< std::string > Y_names_, std::vector< std::string > X_names_)
size_t get_n_rows() const
const int * get_ID() const
const double * get_X() const
bool get_column_major() const noexcept
std::vector< double > logodds(const std::vector< double > &par, size_t i, size_t j)
const std::vector< std::string > & get_Y_names() const
const std::vector< std::string > & get_X_names() const
void simulate(std::vector< double > par, int *y_out)
barry::FreqTable< int > motif_census(std::vector< size_t > idx)
Data_Type &&counter_ noexcept
barry::Model< DEFMArray, DEFMCounterData, DEFMRuleData, DEFMRuleDynData > DEFMModel