Bayesian Networks

Copyright Tristan Aubrey-Jones April 2007.

samplemodel.m

home Home   up Up   ( Download )


function set = samplemodel(fmodel, n); % SAMPLEMODEL samples the fmodel function handle n times % and returns the resulting events in a matrix % with 1 event per row. %% sample set = []; for i = 1:n event = fmodel(); set(i, 1:length(event)) = event; end