bug fix for non integer Nc
parent
e69c5f6864
commit
8e751be5ee
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue