Skip to content
Snippets Groups Projects
Commit 604efa68 authored by Marco Ratto's avatar Marco Ratto Committed by Houtan Bastani
Browse files

bug fix for non integer Nc

parent 2ee32205
No related branches found
No related tags found
No related merge requests found
...@@ -29,7 +29,7 @@ function Ifac = mcmc_ifac(X, Nc) ...@@ -29,7 +29,7 @@ function Ifac = mcmc_ifac(X, Nc)
% You should have received a copy of the GNU General Public License % You should have received a copy of the GNU General Public License
% along with Dynare. If not, see <http://www.gnu.org/licenses/>. % 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), if mod(Nc,2),
Nc=Nc-1; Nc=Nc-1;
end end
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment