function [bnet, ll] = likelihood_weighting(bnet)
% LIKELIHOOD_WEIGHTING Estimate the marginal probability of each node using weighted sampling.
% [bnet, ll] = likelihood_weighting(bnet)
%
% Input
% bnet.sample.num_samples
% 
% Output
% ll is set to -1
% bnet.sample.samples(i,:) contains the i'th sample
% bnet.sample.weights(i) contains its weight

[bnet.sample.samples, bnet.sample.weights] = lw(bnet, bnet.sample.num_samples);
ll = -1;
