Skip to content

Commit

Permalink
sample_raw with histogram
Browse files Browse the repository at this point in the history
  • Loading branch information
friguzzi committed Dec 8, 2023
1 parent 0e58992 commit 7bc56b3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion prolog/examples/gaussian_mixture.pl
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@
?- hist_uncond(1000,40,G).
% take 1000 samples of X in mix(X) and draw a histogram with 40 bins representing
% the probability density of X
?- mc_sample_arg(mix(X),1000,X,L),histogram(L,Chart,[nbins(40)]).
?- mc_sample_arg_raw(mix(X),1000,X,_L),histogram(_L,Chart,[nbins(40)]).
% take 1000 samples of X in mix(X) and draw a histogram with 40 bins representing
% the probability density of X
?- mc_expectation(mix(X),1000,X,E).
Expand Down

0 comments on commit 7bc56b3

Please sign in to comment.