barry: Your go-to motif accountant  0.0-1
Full enumeration of sample space and fast count of sufficient statistics for binary arrays
barry-configuration.hpp File Reference
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Configuration MACROS

These are mostly related to performance. The definitions follow:

  • BARRY_USE_UNORDERED_MAP If specified, then barry is compiled using std::unordered_map. Otherwise it will use std::map for the arrays.
  • BARRY_USE_SAFE_EXP When specified, it will multiply all likelihoods in Model by (1/-100)/(1/-100) so that numerical overflows are avoided.
  • BARRY_USE_ISFINITE When specified, it will introduce a macro that checks whether the likelihood is finite or not.
  • printf_barry If not specified, will be defined as printf.
  • BARRY_DEBUG_LEVEL, when defined, will make things verbose.
#define BARRY_SAFE_EXP   -100.0
 
#define BARRY_ISFINITE(a)
 
#define BARRY_CHECK_SUPPORT(x, maxs)
 
#define printf_barry   printf
 
#define BARRY_MAX_NUM_ELEMENTS   static_cast< size_t >(std::numeric_limits< size_t >::max() /2u)
 
template<typename Ta , typename Tb >
using Map = std::map< Ta, Tb >
 

Macro Definition Documentation

◆ BARRY_CHECK_SUPPORT

#define BARRY_CHECK_SUPPORT (   x,
  maxs 
)

Definition at line 47 of file barry-configuration.hpp.

◆ BARRY_ISFINITE

#define BARRY_ISFINITE (   a)

Definition at line 40 of file barry-configuration.hpp.

◆ BARRY_MAX_NUM_ELEMENTS

#define BARRY_MAX_NUM_ELEMENTS   static_cast< size_t >(std::numeric_limits< size_t >::max() /2u)

Definition at line 55 of file barry-configuration.hpp.

◆ BARRY_SAFE_EXP

#define BARRY_SAFE_EXP   -100.0

Definition at line 33 of file barry-configuration.hpp.

◆ printf_barry

#define printf_barry   printf

Definition at line 51 of file barry-configuration.hpp.

Typedef Documentation

◆ Map

template<typename Ta , typename Tb >
using Map = std::map<Ta,Tb>

Definition at line 27 of file barry-configuration.hpp.