bug fix for non integer Nc

time-shift
Marco Ratto 2015-10-14 11:34:39 +02:00 committed by Johannes Pfeifer
parent e69c5f6864
commit 8e751be5ee
1 changed files with 1 additions and 1 deletions

View File

@ -29,7 +29,7 @@ function Ifac = mcmc_ifac(X, Nc)
% You should have received a copy of the GNU General Public License
% along with Dynare. If not, see <http://www.gnu.org/licenses/>.
Nc = min(Nc, length(X)/2);
Nc = floor(min(Nc, length(X)/2));
if mod(Nc,2),
Nc=Nc-1;
end