libDAI
Public Member Functions | Public Attributes | List of all members
dai::BP::Properties Struct Reference

Parameters for BP. More...

#include <dai/bp.h>

Public Member Functions

 DAI_ENUM (UpdateType, SEQFIX, SEQRND, SEQMAX, PARALL)
 Enumeration of possible update schedules. More...
 
 DAI_ENUM (InfType, SUMPROD, MAXPROD)
 Enumeration of inference variants. More...
 

Public Attributes

size_t verbose
 Verbosity (amount of output sent to stderr) More...
 
size_t maxiter
 Maximum number of iterations. More...
 
double maxtime
 Maximum time (in seconds) More...
 
Real tol
 Tolerance for convergence test. More...
 
bool logdomain
 Whether updates should be done in logarithmic domain or not. More...
 
Real damping
 Damping constant (0.0 means no damping, 1.0 is maximum damping) More...
 
UpdateType updates
 Message update schedule. More...
 
InfType inference
 Inference variant. More...
 

Detailed Description

Parameters for BP.

Member Function Documentation

dai::BP::Properties::DAI_ENUM ( UpdateType  ,
SEQFIX  ,
SEQRND  ,
SEQMAX  ,
PARALL   
)

Enumeration of possible update schedules.

The following update schedules have been defined:

  • PARALL parallel updates
  • SEQFIX sequential updates using a fixed sequence
  • SEQRND sequential updates using a random sequence
  • SEQMAX maximum-residual updates [EMK06]
dai::BP::Properties::DAI_ENUM ( InfType  ,
SUMPROD  ,
MAXPROD   
)

Enumeration of inference variants.

There are two inference variants:

  • SUMPROD Sum-Product
  • MAXPROD Max-Product (equivalent to Min-Sum)

Member Data Documentation

size_t dai::BP::Properties::verbose

Verbosity (amount of output sent to stderr)

size_t dai::BP::Properties::maxiter

Maximum number of iterations.

double dai::BP::Properties::maxtime

Maximum time (in seconds)

Real dai::BP::Properties::tol

Tolerance for convergence test.

bool dai::BP::Properties::logdomain

Whether updates should be done in logarithmic domain or not.

Real dai::BP::Properties::damping

Damping constant (0.0 means no damping, 1.0 is maximum damping)

UpdateType dai::BP::Properties::updates

Message update schedule.

InfType dai::BP::Properties::inference

Inference variant.


The documentation for this struct was generated from the following file: