bayesnet / bnt

Bayes Net Toolbox for Matlab
469 stars 247 forks source link

Error subset by using the cont. variables. I changed the mysubset instead subset. An error fixed it. #84

Open aysekaracaorenli opened 3 years ago

aysekaracaorenli commented 3 years ago

elseif mysubset(nodes, cdom) samples = reshape(cat(1, engine.samples{:,nodes}), nsamples*sum(ns(nodes)), length(nodes)); [marginal.mu, marginal.Sigma] = wstats(samples', normalise(w)); elseif mysubset(nodes, cdom)

with

elseif mysubset(nodes, cdom)

else error('can''t handle mixed marginals yet'); end