% Compare different implementations of fully factored Boyen Koller
water = 1;
if water
bnet = mk_water_dbn;
else
N = 5;
Q = 2;
Y = 2;
bnet = mk_chmm(N, Q, Y);
end
ss = length(bne
function engine = belprop_inf_engine(fg, max_iter, momentum, tol, maximize)
if nargin < 2, max_iter = length(fg.G); end
if nargin < 3, momentum = 0; end
if nargin < 4, tol = 1e-3; end
if nargin
function lam = prod_lambda_msgs(n, cs, msg, msg_type, except)
if nargin < 5, except = -1; end
lam = msg{n}.lambda_from_self;
switch msg_type
case 'd',
for i=1:length(cs)
c = cs(i);
function marginal = marginal_nodes(engine, nodes, t)
% MARGINAL_NODES Compute the marginal on the specified query nodes (bk_ff_hmm)
% marginal = marginal_nodes(engine, i, t)
assert(length(nodes)=
/* inffast.c -- process literals and length/distance pairs fast
* Copyright (C) 1995-2002 Mark Adler
* For conditions of distribution and use, see copyright notice in zlib.h
*/
#include
/* infcodes.c -- process literals and length/distance pairs
* Copyright (C) 1995-2002 Mark Adler
* For conditions of distribution and use, see copyright notice in zlib.h
*/
#include
# This file defines the set of CIDRs (network/mask-length) to which
# communication should never be allowed.
#
# See @FINALDOCDIR@/policygroups.html for details.
#
# $Id: block.in,v 1.4 2003/02/17 02:
# This file defines the set of CIDRs (network/mask-length) to which
# communication should always be in the clear.
#
# See @FINALDOCDIR@/policygroups.html for details.
#
# $Id: clear.in,v 1.4 2003/02/