barry: Your go-to motif accountant
0.0-1
Full enumeration of sample space and fast count of sufficient statistics for binary arrays
|
Frequency table of vectors. More...
#include <freqtable.hpp>
Public Member Functions | |
FreqTable () | |
~FreqTable () | |
size_t | add (const std::vector< T > &x, size_t *h_precomp) |
Counts_type | as_vector () const |
const std::vector< double > & | get_data () const |
const std::unordered_map< size_t, size_t > & | get_index () const |
void | clear () |
void | reserve (size_t n, size_t k) |
void | print () const |
size_t | size () const noexcept |
Number of unique elements in the table. (. More... | |
size_t | make_hash (const std::vector< T > &x) const |
Frequency table of vectors.
This is mostly used in Support
. The main data is contained in the data
double vector. The matrix is stored in a row-wise fashion, where the first element is the frequency with which the vector is observed.
For example, in a model with k
terms the first k + 1 elements of data
would be:
Definition at line 22 of file freqtable.hpp.
Definition at line 34 of file freqtable.hpp.
Definition at line 35 of file freqtable.hpp.
|
inline |
Definition at line 59 of file freqtable.hpp.
|
inline |
Definition at line 139 of file freqtable.hpp.
|
inline |
Definition at line 168 of file freqtable.hpp.
|
inline |
Definition at line 40 of file freqtable.hpp.
|
inline |
Definition at line 41 of file freqtable.hpp.
|
inline |
Definition at line 239 of file freqtable.hpp.
|
inline |
Definition at line 204 of file freqtable.hpp.
|
inline |
Definition at line 182 of file freqtable.hpp.
|
inlinenoexcept |
Number of unique elements in the table. (.
Definition at line 231 of file freqtable.hpp.