Skip to content

Commit a8dbb2b

Browse files
author
compops
committed
bug fixes
Former-commit-id: d9f2924
1 parent a526f8e commit a8dbb2b

2 files changed

Lines changed: 4 additions & 4 deletions

File tree

matlab-seminar/skeleton/example1_iid.m

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@
4848

4949
hold on;
5050
grid = 5:1:45;
51-
plot( grid, T .* exp( poisson( grid, thhat ) ), 'r', 'LineWidth', 2 );
51+
plot( grid, T .* exp( dpoisson( grid, thhat ) ), 'r', 'LineWidth', 2 );
5252
hold off;
5353

5454
% Plot the parameter posterior estimate
@@ -64,4 +64,4 @@
6464

6565
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
6666
% End of file
67-
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
67+
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

matlab-seminar/skeleton/pmh.m

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,11 +21,11 @@
2121

2222
function[ theta ] = pmh( observations, initialTheta, nParticles, nIterations, Sigma )
2323

24-
% Hint: modify mh.mby replacing dpoisson with pf to compute the
24+
% Hint: modify mh.m by replacing dpoisson with pf to compute the
2525
% likelihood for the acceptance probability
2626

2727
end
2828

2929
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
3030
% End of file
31-
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
31+
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

0 commit comments

Comments
 (0)