barry: Your go-to motif accountant
0.0-1
Full enumeration of sample space and fast count of sufficient statistics for binary arrays
|
Count stats for a single Array. More...
#include <statscounter-bones.hpp>
Public Member Functions | |
StatsCounter (const Array_Type *Array_) | |
Creator of a StatsCounter More... | |
StatsCounter (const StatsCounter< Array_Type, Data_Type > &counter) | |
Copy constructor. More... | |
StatsCounter () | |
Can be created without setting the array. More... | |
~StatsCounter () | |
void | reset_array (const Array_Type *Array_) |
Changes the reference array for the counting. More... | |
void | add_counter (Counter< Array_Type, Data_Type > f_) |
void | set_counters (Counters< Array_Type, Data_Type > *counters_) |
void | count_init (size_t i, size_t j) |
Counter functions This function recurses through the entries of Array and at each step of adding a new cell it uses the functions to list the statistics. More... | |
void | count_current (size_t i, size_t j) |
std::vector< double > | count_all () |
Counters< Array_Type, Data_Type > * | get_counters () |
std::vector< std::string > | get_names () const |
std::vector< std::string > | get_descriptions () const |
size_t | size () const |
Count stats for a single Array.
Users can a list of functions that can be used with this. The baseline set of arguments is a pointer to a binary array and a dataset to add the counts to.
Definition at line 14 of file statscounter-bones.hpp.
|
inline |
Creator of a StatsCounter
Array_ | A const pointer to a BArray . |
Definition at line 37 of file statscounter-bones.hpp.
StatsCounter< Array_Type, Data_Type >::StatsCounter | ( | const StatsCounter< Array_Type, Data_Type > & | counter | ) |
Copy constructor.
counter |
|
inline |
Can be created without setting the array.
Definition at line 59 of file statscounter-bones.hpp.
StatsCounter< Array_Type, Data_Type >::~StatsCounter | ( | ) |
void StatsCounter< Array_Type, Data_Type >::add_counter | ( | Counter< Array_Type, Data_Type > | f_ | ) |
|
inline |
Definition at line 99 of file statscounter-meat.hpp.
void StatsCounter< Array_Type, Data_Type >::count_current | ( | size_t | i, |
size_t | j | ||
) |
void StatsCounter< Array_Type, Data_Type >::count_init | ( | size_t | i, |
size_t | j | ||
) |
Counter functions This function recurses through the entries of Array
and at each step of adding a new cell it uses the functions to list the statistics.
Counters<Array_Type,Data_Type>* StatsCounter< Array_Type, Data_Type >::get_counters | ( | ) |
std::vector< std::string > StatsCounter< Array_Type, Data_Type >::get_descriptions | ( | ) | const |
std::vector< std::string > StatsCounter< Array_Type, Data_Type >::get_names | ( | ) | const |
void StatsCounter< Array_Type, Data_Type >::reset_array | ( | const Array_Type * | Array_ | ) |
Changes the reference array for the counting.
Array_ | A pointer to an array of class Array_Type . |
void StatsCounter< Array_Type, Data_Type >::set_counters | ( | Counters< Array_Type, Data_Type > * | counters_ | ) |
|
inline |
Definition at line 86 of file statscounter-bones.hpp.