Merge pull request #542 from JohannesPfeifer/cosmetic_changes

Fix typo in manual and make sure that index is an integer in GetPosterio...
time-shift
Houtan Bastani 2013-11-22 05:59:10 -08:00
commit 4a301a92d3
2 changed files with 3 additions and 3 deletions

View File

@ -5300,10 +5300,10 @@ where @var{FORECAST_OBJECT} is one of the following@footnote{See @ref{forecast}
Mean of the posterior forecast distribution
@item HPDinf/HPDsup
Upper/lower bound of the 90\% HPD interval taking into account only parameter uncertainty
Upper/lower bound of the 90% HPD interval taking into account only parameter uncertainty
@item HPDTotalinf/HPDTotalsup
Upper/lower bound of the 90\% HPD interval taking into account both parameter and future shock uncertainty
Upper/lower bound of the 90% HPD interval taking into account both parameter and future shock uncertainty
@end table

View File

@ -37,7 +37,7 @@ function [mean,variance] = GetPosteriorMeanVariance(M,drop)
n = n + m;
continue
elseif n < drop*NbrDraws
k = drop*NbrDraws - n + 1;
k = ceil(drop*NbrDraws - n + 1);
x2 = o.x2(k:end,:);
else
x2 = o.x2;