barry: Your go-to motif accountant
0.0-1
Full enumeration of sample space and fast count of sufficient statistics for binary arrays
|
Powerset of a binary array. More...
#include <powerset-bones.hpp>
Public Member Functions | |
void | init_support () |
void | calc () |
void | reset (size_t N_, size_t M_) |
Construct and destroy a PowerSet object | |
PowerSet () | |
PowerSet (size_t N_, size_t M_) | |
PowerSet (const Array_Type &array) | |
~PowerSet () | |
Wrappers for the <tt>Rules</tt> member. | |
These will add rules to the model, which are shared by the support and the actual counter function. | |
void | add_rule (Rule< Array_Type, Data_Rule_Type > rule) |
void | add_rule (Rule_fun_type< Array_Type, Data_Rule_Type > count_fun_, Data_Rule_Type data_) |
Getter functions | |
const std::vector< Array_Type > * | get_data_ptr () const |
std::vector< Array_Type > | get_data () const |
std::vector< Array_Type >::iterator | begin () |
std::vector< Array_Type >::iterator | end () |
std::size_t | size () const noexcept |
const Array_Type & | operator[] (const size_t &i) const |
Public Attributes | |
Array_Type | EmptyArray |
std::vector< Array_Type > | data |
Rules< Array_Type, Data_Rule_Type > * | rules |
size_t | N |
size_t | M |
bool | rules_deleted = false |
std::vector< size_t > | coordinates_free |
std::vector< size_t > | coordinates_locked |
size_t | n_free |
size_t | n_locked |
Powerset of a binary array.
Array_Type | |
Data_Rule_Type |
Definition at line 11 of file powerset-bones.hpp.
|
inline |
Definition at line 36 of file powerset-bones.hpp.
|
inline |
Definition at line 38 of file powerset-bones.hpp.
|
inline |
Definition at line 5 of file powerset-meat.hpp.
|
inline |
Definition at line 13 of file powerset-meat.hpp.
|
inline |
Definition at line 180 of file powerset-meat.hpp.
|
inline |
Definition at line 189 of file powerset-meat.hpp.
|
inline |
Definition at line 68 of file powerset-bones.hpp.
|
inline |
Definition at line 151 of file powerset-meat.hpp.
|
inline |
Definition at line 69 of file powerset-bones.hpp.
|
inline |
Definition at line 67 of file powerset-bones.hpp.
|
inline |
Definition at line 66 of file powerset-bones.hpp.
|
inline |
Definition at line 19 of file powerset-meat.hpp.
|
inline |
Definition at line 71 of file powerset-bones.hpp.
|
inline |
Definition at line 167 of file powerset-meat.hpp.
|
inlinenoexcept |
Definition at line 70 of file powerset-bones.hpp.
std::vector< size_t > PowerSet< Array_Type, Data_Rule_Type >::coordinates_free |
Definition at line 26 of file powerset-bones.hpp.
std::vector< size_t > PowerSet< Array_Type, Data_Rule_Type >::coordinates_locked |
Definition at line 27 of file powerset-bones.hpp.
std::vector< Array_Type > PowerSet< Array_Type, Data_Rule_Type >::data |
Definition at line 19 of file powerset-bones.hpp.
Array_Type PowerSet< Array_Type, Data_Rule_Type >::EmptyArray |
Definition at line 18 of file powerset-bones.hpp.
size_t PowerSet< Array_Type, Data_Rule_Type >::M |
Definition at line 22 of file powerset-bones.hpp.
size_t PowerSet< Array_Type, Data_Rule_Type >::N |
Definition at line 22 of file powerset-bones.hpp.
size_t PowerSet< Array_Type, Data_Rule_Type >::n_free |
Definition at line 28 of file powerset-bones.hpp.
size_t PowerSet< Array_Type, Data_Rule_Type >::n_locked |
Definition at line 29 of file powerset-bones.hpp.
Rules<Array_Type,Data_Rule_Type>* PowerSet< Array_Type, Data_Rule_Type >::rules |
Definition at line 20 of file powerset-bones.hpp.
bool PowerSet< Array_Type, Data_Rule_Type >::rules_deleted = false |
Definition at line 23 of file powerset-bones.hpp.