5 typedef barry::BArrayDense<int, DEFMData>
DEFMArray;
39 const double * covariates_,
55 double at(
size_t i,
size_t j)
const;
76 const std::vector< size_t > indices_,
77 const std::vector< double > numbers_,
78 const std::vector< bool > logical_,
107 std::vector< double > numbers_,
108 std::vector< size_t > indices_,
109 std::vector< bool > logical_
113 std::vector< double > numbers_,
114 std::vector< size_t > indices_
140 for (
size_t i = 0u;
i <
array->nrow(); ++
i)
167 const std::vector< double > * counts_,
188 typedef barry::Support<DEFMArray, DEFMCounterData, DEFMRuleData,DEFMRuleDynData>
DEFMSupport;
190 typedef barry::Model<DEFMArray, DEFMCounterData,DEFMRuleData,DEFMRuleDynData>
DEFMModel;
193 typedef barry::Rule<DEFMArray, DEFMRuleData>
DEFMRule;
194 typedef barry::Rules<DEFMArray, DEFMRuleData>
DEFMRules;
Data class used to store arbitrary size_t or double vectors.
Data class for DEFM arrays.
barry::BArrayDense< int, DEFMData > DEFMArray
size_t X_ncol
Number of columns in the array of covariates.
std::vector< size_t > indices
barry::StatsCounter< DEFMArray, DEFMCounterData > DEFMStatsCounter
std::vector< size_t > indices
double num(size_t i) const
std::vector< size_t > covar_sort
bool is_motif
If false, then is a logit intercept.
barry::Rules< DEFMArray, DEFMRuleDynData > DEFMRulesDyn
std::vector< size_t > covar_used
Value where the sorting of the covariates is stored.
std::vector< double > numbers
double num(size_t i) const
barry::Counters< DEFMArray, DEFMCounterData > DEFMCounters
bool is_true(size_t i) const
double operator()(size_t i, size_t j) const
Access to the row (i) colum (j) data.
bool column_major
Vector indicating which covariates are included in the model.
std::vector< double > numbers
bool is_true(size_t i) const
const std::vector< double > * counts
size_t idx(size_t i) const
std::vector< bool > logical
std::vector< bool > logical
size_t obs_start
Index of the observation in the data.
DEFMRuleDynData(const std::vector< double > *counts_, size_t pos_, size_t lb_, size_t ub_)
const double * covariates
Vector of covariates (complete vector)
barry::Model< DEFMArray, DEFMCounterData, DEFMRuleData, DEFMRuleDynData > DEFMModel
DEFMRuleData(std::vector< double > numbers_, std::vector< size_t > indices_)
barry::Rule< DEFMArray, DEFMRuleDynData > DEFMRuleDyn
DEFMRuleData(std::vector< double > numbers_, std::vector< size_t > indices_, std::vector< bool > logical_)
barry::Rules< DEFMArray, DEFMRuleData > DEFMRules
double at(size_t i, size_t j) const
const double operator()() const
DEFMData(DEFMArray *array_, const double *covariates_, size_t obs_start_, size_t X_ncol_, size_t X_nrow_, bool column_major_)
Constructor.
size_t idx(size_t i) const
DEFMCounterData(const std::vector< size_t > indices_, const std::vector< double > numbers_, const std::vector< bool > logical_, bool is_motif_=true)
size_t X_nrow
Number of rows in the array of covariates.
barry::Rule< DEFMArray, DEFMRuleData > DEFMRule
barry::Support< DEFMArray, DEFMCounterData, DEFMRuleData, DEFMRuleDynData > DEFMSupport
barry::Counter< DEFMArray, DEFMCounterData > DEFMCounter