barry: Your go-to motif accountant
0.0-1
Full enumeration of sample space and fast count of sufficient statistics for binary arrays
|
Go to the source code of this file.
Macros | |
#define | CSS_SIZE() |
#define | CSS_MATCH_TYPE() |
#define | CSS_CASE_TRUTH() if ((i < n) && (j < n)) |
#define | CSS_TRUE_CELLS() |
#define | CSS_CASE_PERCEIVED() else if (((i >= s) && (i < e)) & ((j >= s) && (j < e))) |
#define | CSS_PERCEIVED_CELLS() |
#define | CSS_CASE_ELSE() |
#define | CSS_CHECK_SIZE_INIT() |
#define | CSS_CHECK_SIZE() |
#define | CSS_APPEND(name) |
#define | CSS_NET_COUNTER_LAMBDA_INIT() |
Functions | |
template<typename Tnet = Network> | |
void | counter_css_partially_false_recip_commi (NetCounters< Tnet > *counters, size_t netsize, const std::vector< size_t > &end_, size_t counter_type=0u) |
Counts errors of commission. More... | |
template<typename Tnet = Network> | |
void | counter_css_partially_false_recip_omiss (NetCounters< Tnet > *counters, size_t netsize, const std::vector< size_t > &end_, size_t counter_type=0u) |
Counts errors of omission. More... | |
template<typename Tnet = Network> | |
void | counter_css_completely_false_recip_comiss (NetCounters< Tnet > *counters, size_t netsize, const std::vector< size_t > &end_, size_t counter_type=0u) |
Counts completely false reciprocity (comission) More... | |
template<typename Tnet = Network> | |
void | counter_css_completely_false_recip_omiss (NetCounters< Tnet > *counters, size_t netsize, const std::vector< size_t > &end_, size_t counter_type=0u) |
Counts completely false reciprocity (omission) More... | |
template<typename Tnet = Network> | |
void | counter_css_mixed_recip (NetCounters< Tnet > *counters, size_t netsize, const std::vector< size_t > &end_, size_t counter_type=0u) |
Counts mixed reciprocity errors. More... | |
template<typename Tnet = Network> | |
void | counter_css_census01 (NetCounters< Tnet > *counters, size_t netsize, const std::vector< size_t > &end_, size_t counter_type=0u) |
template<typename Tnet = Network> | |
void | counter_css_census02 (NetCounters< Tnet > *counters, size_t netsize, const std::vector< size_t > &end_, size_t counter_type=0u) |
template<typename Tnet = Network> | |
void | counter_css_census03 (NetCounters< Tnet > *counters, size_t netsize, const std::vector< size_t > &end_, size_t counter_type=0u) |
template<typename Tnet = Network> | |
void | counter_css_census04 (NetCounters< Tnet > *counters, size_t netsize, const std::vector< size_t > &end_, size_t counter_type=0u) |
template<typename Tnet = Network> | |
void | counter_css_census05 (NetCounters< Tnet > *counters, size_t netsize, const std::vector< size_t > &end_, size_t counter_type=0u) |
template<typename Tnet = Network> | |
void | counter_css_census06 (NetCounters< Tnet > *counters, size_t netsize, const std::vector< size_t > &end_, size_t counter_type=0u) |
template<typename Tnet = Network> | |
void | counter_css_census07 (NetCounters< Tnet > *counters, size_t netsize, const std::vector< size_t > &end_, size_t counter_type=0u) |
template<typename Tnet = Network> | |
void | counter_css_census08 (NetCounters< Tnet > *counters, size_t netsize, const std::vector< size_t > &end_, size_t counter_type=0u) |
template<typename Tnet = Network> | |
void | counter_css_census09 (NetCounters< Tnet > *counters, size_t netsize, const std::vector< size_t > &end_, size_t counter_type=0u) |
template<typename Tnet = Network> | |
void | counter_css_census10 (NetCounters< Tnet > *counters, size_t netsize, const std::vector< size_t > &end_, size_t counter_type=0u) |
#define CSS_APPEND | ( | name | ) |
Definition at line 81 of file network-css.hpp.
#define CSS_CASE_ELSE | ( | ) |
Definition at line 66 of file network-css.hpp.
Definition at line 48 of file network-css.hpp.
Definition at line 32 of file network-css.hpp.
#define CSS_CHECK_SIZE | ( | ) |
#define CSS_CHECK_SIZE_INIT | ( | ) |
Definition at line 70 of file network-css.hpp.
#define CSS_MATCH_TYPE | ( | ) |
Definition at line 22 of file network-css.hpp.
#define CSS_NET_COUNTER_LAMBDA_INIT | ( | ) |
Definition at line 89 of file network-css.hpp.
#define CSS_PERCEIVED_CELLS | ( | ) |
Definition at line 55 of file network-css.hpp.
#define CSS_SIZE | ( | ) |
#define CSS_TRUE_CELLS | ( | ) |
|
inline |
Definition at line 324 of file network-css.hpp.
|
inline |
Definition at line 389 of file network-css.hpp.
|
inline |
Definition at line 429 of file network-css.hpp.
|
inline |
Definition at line 469 of file network-css.hpp.
|
inline |
Definition at line 509 of file network-css.hpp.
|
inline |
Definition at line 549 of file network-css.hpp.
|
inline |
Definition at line 589 of file network-css.hpp.
|
inline |
Definition at line 629 of file network-css.hpp.
|
inline |
Definition at line 669 of file network-css.hpp.
|
inline |
Definition at line 709 of file network-css.hpp.
|
inline |
Counts completely false reciprocity (comission)
Definition at line 200 of file network-css.hpp.
|
inline |
Counts completely false reciprocity (omission)
Definition at line 241 of file network-css.hpp.
|
inline |
Counts mixed reciprocity errors.
Definition at line 282 of file network-css.hpp.
|
inline |
Counts errors of commission.
netsize | Size of the reference (true) network |
end_ | Vector indicating one past the ending index of each network. (see details) |
counter_type | Size_t indicating the type of counter to use. Possible values are: 0: Count all, 1: Only count if perceiver is involved, and 2: Only count if perceiver is not involved. |
The end_
parameter should be of length N of networks
- 1. It is assumed that the first network ends at netsize
.
Definition at line 107 of file network-css.hpp.
|
inline |
Counts errors of omission.
Definition at line 155 of file network-css.hpp.